summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2014-03-06 15:12:32 +0000
committerDavid Howells <dhowells@redhat.com>2014-03-06 15:12:32 +0000
commite6a1de3e5b2576f9c0d0a5876c5e9fc369e8576f (patch)
treedd0d95b1ac660fba2644012cafbb1efe97b9ddea
parent25897132d436c6c8986a70e283e6da84fe52ae74 (diff)
downloadkeyutils-e6a1de3e5b2576f9c0d0a5876c5e9fc369e8576f.tar.gz
TEST: Make toolbox_report_result use its parameters
Make toolbox_report_result use its parameters rather than going directly to the TEST envvar. Possibly the first parameter should be dropped. Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r--tests/toolbox.inc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/toolbox.inc.sh b/tests/toolbox.inc.sh
index 332bcd6..88608a3 100644
--- a/tests/toolbox.inc.sh
+++ b/tests/toolbox.inc.sh
@@ -72,9 +72,9 @@ function toolbox_report_result()
{
if [ $RUNNING_UNDER_RHTS = 1 ]
then
- report_result $TEST $result
+ report_result $1 $2
fi
- if [ $result = FAIL ]
+ if [ $2 = FAIL ]
then
exit 1
fi