From 3c650a94ad9b4a3c17c156fd253f17a9d2e47190 Mon Sep 17 00:00:00 2001 From: Alberto Date: Mon, 3 Oct 2011 12:35:01 +0100 Subject: Basic file test --- tests/test_lib.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_lib.sh b/tests/test_lib.sh index 1e0a838..aab5ceb 100644 --- a/tests/test_lib.sh +++ b/tests/test_lib.sh @@ -59,10 +59,10 @@ function main { $CREATE $IMGFILE $ORIGIN $TARGET && \ cd $ORIGIN && \ $DEPLOY $IMGFILE && \ - RET=$? + RETVAL=$? cd $CWD - if [ $RET -ne 0 ] + if test "x$RETVAL" != "x0" then echo $FAIL echo "Could not create and deploy image." 1>&2 @@ -72,7 +72,7 @@ function main { echo -n "$TEST_ID Checking $TEST_NAME results: " check_results - if [ $RET -ne 0 ] + if test "x$RETVAL" != "x0" then echo $FAIL echo "Applying image did not produce the expected results" 1>&2 -- cgit v1.2.1