From a5011a2fbfe4ae1f04913fd490f49a1624c1e04d Mon Sep 17 00:00:00 2001 From: Alex Sweet Date: Sun, 27 Jun 2021 17:14:17 -0700 Subject: Tests: Cleanup CTestTestSerialInDepends lockfile at test start When any test under CTestTestSerialInDepends starts, delete the lockfile for that test in case it wasn't deleted at the end of the last test run. Fixes: #22351 --- Tests/CTestTestSerialInDepends/test.ctest | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v0.12