File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,19 @@ function(PYSYSTEMTEST_ADD_TEST)
79
79
# Add all of the individual tests so that they can be run in parallel
80
80
foreach (part ${ARGN} )
81
81
set (_test_name ${part} )
82
+ if (NOT PR_JOB)
83
+ set (_system_test_options "-l information --quiet --output-on-failure" )
84
+ else ()
85
+ set (_system_test_options "-l information --quiet --output-on-failure --exclude-in-pull-requests" )
86
+ endif ()
87
+
82
88
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" )
83
- add_test (NAME ${_test_name} COMMAND ${CMAKE_BINARY_DIR} /systemtest_no_update.bat -R ${_test_name} )
89
+ add_test (NAME ${_test_name} COMMAND ${CMAKE_BINARY_DIR} /systemtest_no_update.bat -R ${_test_name}
90
+ ${_system_test_options}
91
+ )
84
92
else ()
85
- add_test (NAME ${_test_name} COMMAND ${CMAKE_BINARY_DIR} /systemtest_no_update -R ${_test_name} -l information
86
- -- quiet -- output - on -failure
93
+ add_test (NAME ${_test_name} COMMAND ${CMAKE_BINARY_DIR} /systemtest_no_update -R ${_test_name}
94
+ ${_system_test_options}
87
95
)
88
96
endif ()
89
97
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ if [[ $OSTYPE == "msys"* ]]; then
38
38
BUILD_OPTIONS=" $BUILD_OPTIONS --config Release"
39
39
fi
40
40
41
+ if [[ ${JOB_NAME} == * pull_requests* ]]; then
42
+ EXTRA_CMAKE_FLAGS+=" -DPR_JOB=True"
43
+ fi
44
+
41
45
# Run CMake using preset and variables
42
46
cmake --preset=${CMAKE_PRESET} ${MANTID_DATA_STORE_CMAKE} ${EXTRA_CMAKE_FLAGS} $WORKSPACE
43
47
Original file line number Diff line number Diff line change @@ -108,9 +108,5 @@ if [[ $ENABLE_SYSTEM_TESTS == true ]]; then
108
108
109
109
SYSTEM_TEST_OPTIONS=" -j${BUILD_THREADS_SYSTEM_TESTS} --no-compress-output --schedule-random --repeat until-pass:3"
110
110
111
- if [[ ${JOB_NAME} == * pull_requests* ]]; then
112
- SYSTEM_TEST_OPTIONS+=" --exclude-in-pull-requests"
113
- fi
114
-
115
111
run_with_xvfb ctest -L SystemTest -T Test -O test_logs/systest_$OSTYPE .log $SYSTEM_TEST_OPTIONS $WINDOWS_TEST_OPTIONS
116
112
fi
You can’t perform that action at this time.
0 commit comments