X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/93876a5fc8231cae1e9f13caf50492985e7ae76e..1c324d5b2380a68f209e65969079677dbaf1c511:/functest/do.sh?ds=inline diff --git a/functest/do.sh b/functest/do.sh index 277a4b35..652dbcec 100755 --- a/functest/do.sh +++ b/functest/do.sh @@ -4,7 +4,7 @@ MKTEMP=/usr/bin/mktemp RM=/bin/rm printf "Creating temporary dir... " -DIR=`$MKTEMP -d` +DIR=`$MKTEMP -d 2> /dev/null || $MKTEMP -d -t stg` if [ "$DIR" == "" ] then @@ -35,16 +35,12 @@ then printf "Failed.\n" exit -1 else - printf "Ok.\nTesting... " + printf "Ok.\n" fi + ./test.sh "$DIR" # >> "$LOGFILE" 2>&1 -if [ "$?" != "0" ] -then - printf "Failed.\n" - exit -1 -else - printf "Ok.\nCleaning up... " -fi + +printf "Cleaning up... " $RM -rf $DIR if [ "$?" != "0" ]