0020-harness-Make-the-test-exit-with-a-code-matching-the-.patch 800 B

1234567891011121314151617181920212223242526272829
  1. From abcb9eeacc2f12c3d77b66c274ace9bffecf68e3 Mon Sep 17 00:00:00 2001
  2. From: Guillem Jover <guillem@hadrons.org>
  3. Date: Tue, 23 Jul 2019 02:48:43 +0200
  4. Subject: [PATCH libaio 20/28] harness: Make the test exit with a code matching
  5. the pass/fail state
  6. This way we can use the exit code to check whether the tests passed or
  7. failed, and fail the package build.
  8. Signed-off-by: Guillem Jover <guillem@hadrons.org>
  9. Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
  10. ---
  11. harness/runtests.sh | 2 ++
  12. 1 file changed, 2 insertions(+)
  13. diff --git a/harness/runtests.sh b/harness/runtests.sh
  14. index 717c72a..ef269a7 100755
  15. --- a/harness/runtests.sh
  16. +++ b/harness/runtests.sh
  17. @@ -17,3 +17,5 @@ done
  18. echo "Pass: $passes Fail: $fails"
  19. echo "Test run complete at" `date`
  20. +
  21. +exit $fails
  22. --
  23. 2.26.0.292.g33ef6b2f38