summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2019-07-23 02:48:43 +0200
committerJeff Moyer <jmoyer@redhat.com>2019-07-29 12:34:01 -0400
commitabcb9eeacc2f12c3d77b66c274ace9bffecf68e3 (patch)
tree7c26b104b283d3eec8a613f4b6e97bb6f9ddda77
parentf322f467c3cd2ac4d8d08a19bd281eabb65433b1 (diff)
downloadlibaio-abcb9eeacc2f12c3d77b66c274ace9bffecf68e3.tar.gz
harness: Make the test exit with a code matching the pass/fail state
This way we can use the exit code to check whether the tests passed or failed, and fail the package build. Signed-off-by: Guillem Jover <guillem@hadrons.org> Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
-rwxr-xr-xharness/runtests.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/harness/runtests.sh b/harness/runtests.sh
index 717c72a..ef269a7 100755
--- a/harness/runtests.sh
+++ b/harness/runtests.sh
@@ -17,3 +17,5 @@ done
echo "Pass: $passes Fail: $fails"
echo "Test run complete at" `date`
+
+exit $fails