Skip to content

Commit 1d5b0b1

Browse files
marty1885baylesj
andauthored
prevent test colision when running in parallel via RESOURCE_LOCK (#1637)
Co-authored-by: Jordan Bayles <bayles.jordan@gmail.com>
1 parent acf3b5d commit 1d5b0b1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/jsontestrunner/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,9 @@ if(PYTHONINTERP_FOUND)
4848
COMMAND "${PYTHON_EXECUTABLE}" -B "${RUNJSONTESTS_PATH}" --with-json-checker $<TARGET_FILE:jsontestrunner_exe> "${TEST_DIR}/data"
4949
WORKING_DIRECTORY "${TEST_DIR}/data"
5050
)
51+
52+
# Both tests write .actual/.actual-rewrite along with test data, need to prevent collision when running tests via ctest -j
53+
set_tests_properties(jsoncpp_readerwriter jsoncpp_readerwriter_json_checker
54+
PROPERTIES RESOURCE_LOCK "test_data_files"
55+
)
5156
endif()

0 commit comments

Comments
 (0)