You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/tests-wrapper.sh.in
+1-10Lines changed: 1 addition & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@
10
10
MAX_ATTEMPTS=1
11
11
TIMEOUT= # default: no timeout
12
12
DONT_FAIL_ON_TIMEOUT= # default: if it times out, it fails
13
-
NON_FATAL= # default: fail on error
14
13
ARGS=("$@")
15
14
16
15
while [[ $#-gt 0 ]];do
@@ -35,10 +34,6 @@ while [[ $# -gt 0 ]]; do
35
34
DONT_FAIL_ON_TIMEOUT=1
36
35
shift
37
36
;;
38
-
--non-fatal)
39
-
NON_FATAL=1
40
-
shift
41
-
;;
42
37
*)
43
38
echo"Parameter unknown: $1">&2
44
39
exit 1
@@ -63,7 +58,7 @@ function banner() {
63
58
echo"=== $TEST_NAME - $1 ===">&2
64
59
}
65
60
66
-
banner "Starting test. Max attempts: $MAX_ATTEMPTS.${TIMEOUT:+" Timeout per attempt: $TIMEOUT."}${DONT_FAIL_ON_TIMEOUT:+" Timeouts are not fatal."}${NON_FATAL:+" Errors are not fatal."}"
61
+
banner "Starting test. Max attempts: $MAX_ATTEMPTS.${TIMEOUT:+" Timeout per attempt: $TIMEOUT."}${DONT_FAIL_ON_TIMEOUT:+" Timeouts are not fatal."}"
67
62
68
63
forAin"${ARGS[@]}";do
69
64
banner "Argument: $A"
@@ -123,9 +118,5 @@ if [[ $DONT_FAIL_ON_TIMEOUT && $ERR == 124 ]]; then
123
118
banner "Reason for failure: timeout, explicitly set as not fatal. Exiting with 0"
124
119
cp "${LOG}.${ERR}""${LOG}.${ERR}.nonfatal"
125
120
exit 0
126
-
elif [[ $NON_FATAL ]];then
127
-
banner "Failed with error $ERR, but errors are set as not fatal. Exiting with 0"
0 commit comments