File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed
Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -54,25 +54,36 @@ env_vars_tail="BUILD_NAME=my-build\nVERSION=1.0.1\nQUALITY_GATE=B (ERROR)\nWITH_
5454missing_text=" _(no notification provided)_"
5555
5656username=" concourse"
57- # Turn off failure on failed command return because we can't exit the script when we EXPECT a failure from a test
57+
58+ # Turn off failure on failed command return because we can't exit the script
59+ # when we EXPECT a failure from a test
5860set +e
5961
60- # Run these in a subshell so that the subshell process exits itself. If we don't run in a subshell the exit will exit THIS process
61- $( test curl_failure)
62- if [ $? -eq 0 ]; then # Since we EXPECT failure from these tests, assert that they come back with a "bad" non-zero status code.
62+ (
63+ # Run these in a subshell so that the subshell process exits itself. If we
64+ # don't run in a subshell the exit will exit THIS process
65+ test curl_failure
66+ )
67+ # Since we EXPECT failure from these tests, assert that they come back with a
68+ # "bad" non-zero status code
69+ if [ $? -eq 0 ]; then
6370 exit 1
6471else
6572 echo_true
6673fi
6774
68- $( test curl_failure_with_silent)
75+ (
76+ test curl_failure_with_silent
77+ )
6978if [ $? -eq 0 ]; then
7079 exit 1
7180else
7281 echo_true
7382fi
7483
75- $( test curl_failure_without_redact_hook)
84+ (
85+ test curl_failure_without_redact_hook
86+ )
7687if [ $? -eq 0 ]; then
7788 exit 1
7889else
You can’t perform that action at this time.
0 commit comments