From 232ff28cc744e14f4bacb35a34fa58b951d827b0 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Wed, 23 Feb 2022 14:27:29 +0900 Subject: [PATCH] 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 dbf93c01528f97933c291de9fbba5fb26b60ac03. --- test/test-utils.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test-utils.sh b/test/test-utils.sh index 1ec465d..cd7359c 100644 --- a/test/test-utils.sh +++ b/test/test-utils.sh @@ -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}"