Update shebang test notes
This commit is contained in:
parent
09826a17c3
commit
853bb7d28a
@ -182,16 +182,16 @@ d: c
|
|||||||
#[test]
|
#[test]
|
||||||
fn shebang() {
|
fn shebang() {
|
||||||
// this test exists to make sure that shebang recipes
|
// this test exists to make sure that shebang recipes
|
||||||
// are run correctly. although it is still executed
|
// run correctly. although this script is still
|
||||||
// by sh its behavior depends on the value of a
|
// executed by sh its behavior depends on the value of a
|
||||||
// variable, which would not be available if it were
|
// variable and continuing even though a command fails
|
||||||
// a plain recipe
|
|
||||||
let text = "
|
let text = "
|
||||||
a:
|
a:
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
code=200
|
code=200
|
||||||
function x { return $code; }
|
function x { return $code; }
|
||||||
x
|
x
|
||||||
|
x
|
||||||
";
|
";
|
||||||
|
|
||||||
match expect_success(text).run(&["a"]).unwrap_err() {
|
match expect_success(text).run(&["a"]).unwrap_err() {
|
||||||
|
Loading…
Reference in New Issue
Block a user