diff options
author | наб <[email protected]> | 2022-02-02 23:17:46 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-02-02 14:17:46 -0800 |
commit | 142a5010ab65b8622619bb831c906cbc21b82b41 (patch) | |
tree | 4c20a32c67e773435a3d9d596c09c396d3969219 /scripts/zfs-tests.sh | |
parent | 955bf4dc0499e284e28b6be4b9069f34709178fd (diff) |
Notice if the test-runner dies
Currently, we seem to only care if the results collector errors.
We also should care if the test-runner died.
Authored-by: Rich Ercolani <[email protected]>
Co-authored-by: Rich Ercolani <[email protected]>
Reviewed-by: Damian Szuberski <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12998
Diffstat (limited to 'scripts/zfs-tests.sh')
-rwxr-xr-x | scripts/zfs-tests.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/zfs-tests.sh b/scripts/zfs-tests.sh index aaaf9ddfc..8c1b51166 100755 --- a/scripts/zfs-tests.sh +++ b/scripts/zfs-tests.sh @@ -700,12 +700,14 @@ msg "${TEST_RUNNER} ${QUIET:+-q}" \ "-T \"${TAGS}\"" \ "-i \"${STF_SUITE}\"" \ "-I \"${ITERATIONS}\"" -${TEST_RUNNER} ${QUIET:+-q} \ +{ ${TEST_RUNNER} ${QUIET:+-q} \ -c "${RUNFILES}" \ -T "${TAGS}" \ -i "${STF_SUITE}" \ -I "${ITERATIONS}" \ - 2>&1 | tee "$RESULTS_FILE" + 2>&1; echo $? >"$REPORT_FILE"; } | tee "$RESULTS_FILE" +read -r RUNRESULT <"$REPORT_FILE" + # # Analyze the results. # @@ -720,13 +722,14 @@ if [ "$RESULT" -eq "2" ] && [ -n "$RERUN" ]; then for test_name in $MAYBES; do grep "$test_name " "$TEMP_RESULTS_FILE" >>"$TEST_LIST" done - ${TEST_RUNNER} ${QUIET:+-q} \ + { ${TEST_RUNNER} ${QUIET:+-q} \ -c "${RUNFILES}" \ -T "${TAGS}" \ -i "${STF_SUITE}" \ -I "${ITERATIONS}" \ -l "${TEST_LIST}" \ - 2>&1 | tee "$RESULTS_FILE" + 2>&1; echo $? >"$REPORT_FILE"; } | tee "$RESULTS_FILE" + read -r RUNRESULT <"$REPORT_FILE" # # Analyze the results. # @@ -748,4 +751,4 @@ if [ -n "$SINGLETEST" ]; then rm -f "$RUNFILES" >/dev/null 2>&1 fi -exit "${RESULT}" +[ "$RUNRESULT" -gt 3 ] && exit "$RUNRESULT" || exit "$RESULT" |