Propagate return code properly (#1884)

Previously this did not propagate test failures.  A bad rebase
introduced this logic in 495d51113c.
This commit is contained in:
Andrew Gaul 2022-02-06 22:45:20 +09:00 committed by GitHub
parent 9224f792f0
commit dbf93c0152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,7 +250,7 @@ function run_suite {
# Ensure test input name differs every iteration
TEST_TEXT_FILE="test-s3fs.txt-${RANDOM}"
TEST_DIR="testdir-${RANDOM}"
"${t}" "${key_prefix}" && rc=$? || rc=$?
"${t}" "${key_prefix}"; rc=$?
if [[ "${rc}" = 0 ]] ; then
report_pass "${t}"