[PATCH libaio 20/28] harness: Make the test exit with a code matching the pass/fail...
authorGuillem Jover <guillem@hadrons.org>
Tue, 23 Jul 2019 00:48:43 +0000 (02:48 +0200)
committerGuillem Jover <guillem@debian.org>
Thu, 11 Nov 2021 03:56:01 +0000 (03:56 +0000)
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>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0020-harness-Make-the-test-exit-with-a-code-matching-the-.patch

harness/runtests.sh

index 717c72a614b7db7ac8558d870b6db1c459a1e76c..ef269a762e47f1adc9d70fbde903273ac893b23a 100755 (executable)
@@ -17,3 +17,5 @@ done
 
 echo "Pass: $passes  Fail: $fails"
 echo "Test run complete at" `date`
+
+exit $fails