From 6da5c29fc72975c0240ff83d334d092f2b66c0ed 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 (dotnet/coreclr#8081) Commit migrated from https://github.com/dotnet/coreclr/commit/55b1bb4e35807220a48391548238e29b075102bb --- src/coreclr/tests/runtest.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/coreclr/tests/runtest.sh b/src/coreclr/tests/runtest.sh index 51c0192..1c67a70 100755 --- a/src/coreclr/tests/runtest.sh +++ b/src/coreclr/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 { -- 2.7.4