Update shebang test notes

This commit is contained in:
Casey Rodarmor 2016-10-08 12:53:53 -07:00
parent b7f7deb4bb
commit 4646c9365e

View File

@ -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() {