Re-re-fix propagating the return code (#1903)

Previously the integration tests were exiting after the first failed
test instead of running all of them an reporting their statuses.
Follows on to dbf93c0152.
This commit is contained in:
Andrew Gaul 2022-02-23 14:27:29 +09:00 committed by GitHub
parent 81ed2bd91e
commit 232ff28cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,9 +250,8 @@ 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=$?
if [[ "${rc}" = 0 ]] ; then
"${t}" "${key_prefix}" && rc=$? || rc=$?
if [ $rc = 0 ]; then
report_pass "${t}"
else
report_fail "${t}"