File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -290,10 +290,12 @@ function(bout_add_integrated_test TESTNAME)
290290 bout_add_integrated_or_mms_test (
291291 build -check-integrated-tests ${TESTNAME} ${ARGV}
292292 )
293- string (REGEX REPLACE "^(test-)?(.+)$" "test_\\ 2.py" TEST_FILENAME "${TESTNAME} " )
294- string (REPLACE "-" "_" TEST_FILENAME "${TEST_FILENAME} " )
295- string (REPLACE "test_test_" "test_" TEST_FILENAME "${TEST_FILENAME} " )
296- bout_copy_file (${TEST_FILENAME} )
293+ if (TARGET ${TESTNAME} ) # Don't copy if the test has been skipped
294+ string (REGEX REPLACE "^(test-)?(.+)$" "test_\\ 2.py" TEST_FILENAME "${TESTNAME} " )
295+ string (REPLACE "-" "_" TEST_FILENAME "${TEST_FILENAME} " )
296+ string (REPLACE "test_test_" "test_" TEST_FILENAME "${TEST_FILENAME} " )
297+ bout_copy_file (${TEST_FILENAME} )
298+ endif ()
297299endfunction ()
298300
299301# Add a new MMS test. See `bout_add_integrated_or_mms_test` for arguments
You can’t perform that action at this time.
0 commit comments