Skip to content

Commit

Permalink
Merge pull request #3585 from prckent/reslock
Browse files Browse the repository at this point in the history
Nexus: Resource lock nexus examples
  • Loading branch information
ye-luo committed Nov 3, 2021
2 parents 2a6f3a4 + 393cb81 commit 8876779
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nexus/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ if(ADD_TEST)
PROPERTY LABELS "nexus;deterministic")
set(TEST_LABELS "")
add_test_labels(ntest_nexus_${TESTNAME} TEST_LABELS)
# Use a resource lock to avoid potential race condition in copying example inputs
if (${TESTNAME} MATCHES ".*example.*")
set_tests_properties(ntest_nexus_${TESTNAME} PROPERTIES RESOURCE_LOCK nexus_examples_resource)
endif()
endforeach()
else()
message("Skipping Nexus tests because numpy is not present in python installation")
Expand Down

0 comments on commit 8876779

Please sign in to comment.