From 239aedd9f9050f8e53833f9bfcf8b3f4901c1b59 Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Fri, 11 Nov 2016 12:36:21 +0900 Subject: [PATCH] Fix runtest.sh: delete ni file and lock correctly --- tests/runtest.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/runtest.sh b/tests/runtest.sh index df552beb48c9..23fdb9ddeb2d 100755 --- a/tests/runtest.sh +++ b/tests/runtest.sh @@ -795,6 +795,7 @@ function finish_remaining_tests { function prep_test { local scriptFilePath=$1 + local scriptFileDir=$(dirname "$scriptFilePath") test "$verbose" == 1 && echo "Preparing $scriptFilePath" @@ -807,8 +808,8 @@ function prep_test { chmod +x "$scriptFilePath" #remove any NI and Locks - rm -f *.ni.* - rm -rf lock + rm -f $scriptFileDir/*.ni.* + rm -rf $scriptFileDir/lock } function start_test {