From 55b1bb4e35807220a48391548238e29b075102bb Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Tue, 6 Dec 2016 03:55:40 +0900 Subject: [PATCH] Fix runtest.sh: delete ni file and lock correctly (#8081) --- tests/runtest.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/runtest.sh b/tests/runtest.sh index 51c01926ee98..1c67a70db76b 100755 --- a/tests/runtest.sh +++ b/tests/runtest.sh @@ -808,6 +808,7 @@ function finish_remaining_tests { function prep_test { local scriptFilePath=$1 + local scriptFileDir=$(dirname "$scriptFilePath") test "$verbose" == 1 && echo "Preparing $scriptFilePath" @@ -820,8 +821,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 {