summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2013-02-04 13:02:11 -0500
committerPaul Moore <pmoore@redhat.com>2013-02-04 13:02:11 -0500
commita15655caa2a6ecfe3654d4b8ad8d61e6792e4bb3 (patch)
tree630ed24d6c515a0028de75f01e5c653b9dc335cc
parent6e1c0839056e853f5503625d50b65a75294e6d25 (diff)
downloadlibseccomp-a15655caa2a6ecfe3654d4b8ad8d61e6792e4bb3.tar.gz
tests: fix the error reporting with the basic test type
Signed-off-by: Paul Moore <pmoore@redhat.com>
-rwxr-xr-xtests/regression5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/regression b/tests/regression
index 1fb633c..a492013 100755
--- a/tests/regression
+++ b/tests/regression
@@ -499,8 +499,9 @@ function run_test_basic() {
# run the command
run_test_command "$1" "$2" ""
- if [[ $? -ne 0 ]]; then
- print_result $1 "FAILURE" "$2 rc=$?"
+ local rc=$?
+ if [[ $rc -ne 0 ]]; then
+ print_result $1 "FAILURE" "$2 rc=$rc"
stats_failure=$(($stats_failure+1))
else
print_result $1 "SUCCESS" ""