Avoid using error code 1 in integration tests (#486)

Since error code 1 is commonly used to indicate failure, change those
integration tests which test that a specific error code is returned to
use something other than 1.
This commit is contained in:
Casey Rodarmor 2019-10-08 22:03:59 -07:00 committed by GitHub
parent ab11740104
commit bd75c5f51d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -472,75 +472,75 @@ integration_test! {
name: backtick_code_interpolation_tab, name: backtick_code_interpolation_tab,
justfile: " justfile: "
backtick-fail: backtick-fail:
\techo {{`exit 1`}} \techo {{`exit 200`}}
", ",
stdout: "", stdout: "",
stderr: " error: Backtick failed with exit code 1 stderr: " error: Backtick failed with exit code 200
| |
3 | echo {{`exit 1`}} 3 | echo {{`exit 200`}}
| ^^^^^^^^ | ^^^^^^^^^^
", ",
status: 1, status: 200,
} }
integration_test! { integration_test! {
name: backtick_code_interpolation_tabs, name: backtick_code_interpolation_tabs,
justfile: " justfile: "
backtick-fail: backtick-fail:
\techo {{\t`exit 1`}} \techo {{\t`exit 200`}}
", ",
stdout: "", stdout: "",
stderr: "error: Backtick failed with exit code 1 stderr: "error: Backtick failed with exit code 200
| |
3 | echo {{ `exit 1`}} 3 | echo {{ `exit 200`}}
| ^^^^^^^^ | ^^^^^^^^^^
", ",
status: 1, status: 200,
} }
integration_test! { integration_test! {
name: backtick_code_interpolation_inner_tab, name: backtick_code_interpolation_inner_tab,
justfile: " justfile: "
backtick-fail: backtick-fail:
\techo {{\t`exit\t\t1`}} \techo {{\t`exit\t\t200`}}
", ",
stdout: "", stdout: "",
stderr: "error: Backtick failed with exit code 1 stderr: "error: Backtick failed with exit code 200
| |
3 | echo {{ `exit 1`}} 3 | echo {{ `exit 200`}}
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^
", ",
status: 1, status: 200,
} }
integration_test! { integration_test! {
name: backtick_code_interpolation_leading_emoji, name: backtick_code_interpolation_leading_emoji,
justfile: " justfile: "
backtick-fail: backtick-fail:
\techo 😬{{`exit 1`}} \techo 😬{{`exit 200`}}
", ",
stdout: "", stdout: "",
stderr: "error: Backtick failed with exit code 1 stderr: "error: Backtick failed with exit code 200
| |
3 | echo 😬{{`exit 1`}} 3 | echo 😬{{`exit 200`}}
| ^^^^^^^^ | ^^^^^^^^^^
", ",
status: 1, status: 200,
} }
integration_test! { integration_test! {
name: backtick_code_interpolation_unicode_hell, name: backtick_code_interpolation_unicode_hell,
justfile: " justfile: "
backtick-fail: backtick-fail:
\techo \t\t\t😬{{\t\t`exit 1 # \t\t\tabc`}}\t\t\t😬 \techo \t\t\t😬{{\t\t`exit 200 # \t\t\tabc`}}\t\t\t😬
", ",
stdout: "", stdout: "",
stderr: "error: Backtick failed with exit code 1 stderr: "error: Backtick failed with exit code 200
| |
3 | echo 😬{{ `exit 1 # abc`}} 😬 3 | echo 😬{{ `exit 200 # abc`}} 😬
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
", ",
status: 1, status: 200,
} }
integration_test! { integration_test! {