Browse Source

Merge topic 'test-CTestTestSerialInDepends-lockfile'

a5011a2fbf Tests: Cleanup CTestTestSerialInDepends lockfile at test start

Acked-by: Kitware Robot <[email protected]>
Merge-request: !6273
Brad King 4 years ago
parent
commit
d837efafa5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Tests/CTestTestSerialInDepends/test.ctest

+ 3 - 0
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)