X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fvirl%2Fbin%2Fstop-testcase;h=572d5d6e8d55224e691c6b51c95ac509d031d197;hb=e2f9bdd098fb0008cc4fc2f8c8298ebe0d6ef062;hp=dbbb53e30f2acb8b0b2e550c355286d6134528ec;hpb=f9e2ef4af9dee2220d4ee2ebeae5012de84a83fe;p=csit.git diff --git a/resources/tools/virl/bin/stop-testcase b/resources/tools/virl/bin/stop-testcase index dbbb53e30f..572d5d6e8d 100755 --- a/resources/tools/virl/bin/stop-testcase +++ b/resources/tools/virl/bin/stop-testcase @@ -20,5 +20,8 @@ NFS_SCRATCH_SERVERDIR="/nfs/scratch" # Our own (NFS s TESTCASE=$1 -virl_std_client -u $VIRL_USER -p $VIRL_PASSWORD simengine-stop --session-id $TESTCASE -rm -fr ${NFS_SCRATCH_SERVERDIR}/${TESTCASE} +if [ "x${TESTCASE}" != "x" ] +then + virl_std_client -u $VIRL_USER -p $VIRL_PASSWORD simengine-stop --session-id $TESTCASE + sudo rm -fr ${NFS_SCRATCH_SERVERDIR}/${TESTCASE} +fi