aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/run-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/testing/run-test.sh')
-rwxr-xr-xscripts/testing/run-test.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/testing/run-test.sh b/scripts/testing/run-test.sh
index d1b4566..c0eaf50 100755
--- a/scripts/testing/run-test.sh
+++ b/scripts/testing/run-test.sh
@@ -256,7 +256,15 @@ copy_from_vm "/var/log/archsetup-installed-packages.txt" "$TEST_RESULTS_DIR/" "$
capture_post_install_state "$TEST_RESULTS_DIR"
# Run comprehensive validation
-# This uses the validation.sh library for all checks
+# This uses the validation.sh library for all checks.
+#
+# From here to the end of the script, errexit is disabled on purpose: the
+# validation functions are designed to fail-and-count (see VALIDATION_FAILED)
+# rather than abort, and the analysis/report-generation steps below can also
+# legitimately return non-zero. With `set -e` active, a single failed check
+# would kill the run before the test report is written or the VM is cleaned
+# up. Pass/fail is signalled explicitly by the exit code at the bottom.
+set +e
run_all_validations
validate_all_services