diff options
author | Paul Moore <pmoore@redhat.com> | 2013-09-03 18:24:37 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-10-14 14:56:30 -0400 |
commit | 15752e8cf4eb95e463e496de44e005a8b6b24ca8 (patch) | |
tree | 0970d7a47d5a921e1dd85e1193b6116d490d108a | |
parent | 3b6b69184196189d3b53ae695c0d130b9cf70784 (diff) | |
download | libseccomp-15752e8cf4eb95e463e496de44e005a8b6b24ca8.tar.gz |
tests: return a useful error code from the test harness
With this patch the test harness returns 0 if there were no errors or
failures detected, positive values if a error or failure was detected.
Signed-off-by: Paul Moore <pmoore@redhat.com>
-rwxr-xr-x | tests/regression | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/regression b/tests/regression index 6e3d6d1..c1d7303 100755 --- a/tests/regression +++ b/tests/regression @@ -825,4 +825,8 @@ echo "============================================================" >&$logfd # cleanup and exit rm -f $tmpfile -exit 0 +rc=0 +[[ $stats_failure -gt 0 ]] && rc=$(($rc + 2)) +[[ $stats_error -gt 0 ]] && rc=$(($rc + 4)) + +exit $rc |