summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-29 13:24:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-06-29 13:24:49 (GMT)
commitd837efafa56c39c75de3d66c964d002a39a58301 (patch)
tree019dea04128f5609da5416ce57bbd9ff9b5aa647 /Tests
parent0d9f8b0267c4370c3157295a8363e4088d0f79db (diff)
parenta5011a2fbfe4ae1f04913fd490f49a1624c1e04d (diff)
downloadCMake-d837efafa56c39c75de3d66c964d002a39a58301.zip
CMake-d837efafa56c39c75de3d66c964d002a39a58301.tar.gz
CMake-d837efafa56c39c75de3d66c964d002a39a58301.tar.bz2
Merge topic 'test-CTestTestSerialInDepends-lockfile'
a5011a2fbf Tests: Cleanup CTestTestSerialInDepends lockfile at test start Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6273
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CTestTestSerialInDepends/test.ctest3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CTestTestSerialInDepends/test.ctest b/Tests/CTestTestSerialInDepends/test.ctest
index 28ee094..cf0d314 100644
--- a/Tests/CTestTestSerialInDepends/test.ctest
+++ b/Tests/CTestTestSerialInDepends/test.ctest
@@ -2,6 +2,9 @@ set(CTEST_RUN_CURRENT_SCRIPT 0)
set(LOCK_FILE "${TEST_NAME}.lock")
+# Delete the old lock file in case it's lingering from a previous failed test run
+file(REMOVE "${LOCK_FILE}")
+
if("${TEST_NAME}" STREQUAL "i_want_to_be_alone")
file(GLOB LOCK_FILES *.lock)
if(LOCK_FILES)