File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ def get_extra_env(sycl_devices):
236236 continue
237237
238238 # Filter commands based on split-mode
239- is_run_line = unsplit_test or any (
239+ is_run_line = ( unsplit_test and test . config . fallback_build_run_only ) or any (
240240 i in directive .command
241241 for i in ["%{run}" , "%{run-unfiltered-devices}" , "%if run-mode" ]
242242 )
Original file line number Diff line number Diff line change 4545elif config .test_mode == "run-only" :
4646 lit_config .note ("run-only test mode enabled, only executing tests" )
4747 config .available_features .add ("run-mode" )
48- config .available_features .add ("build-and-run-mode" )
48+ config .fallback_build_run_only = False
49+ if lit_config .params .get ("build-instead-of-skip-run-only" , False ):
50+ config .available_features .add ("build-and-run-mode" )
51+ config .fallback_build_run_only = True
4952elif config .test_mode == "build-only" :
5053 lit_config .note ("build-only test mode enabled, only compiling tests" )
5154 config .sycl_devices = []
You can’t perform that action at this time.
0 commit comments