Skip to content

Commit ad80c2e

Browse files
committed
Add option to build over skip in run-only
1 parent ca76a74 commit ad80c2e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

sycl/test-e2e/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
)

sycl/test-e2e/lit.cfg.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@
4545
elif 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
4952
elif config.test_mode == "build-only":
5053
lit_config.note("build-only test mode enabled, only compiling tests")
5154
config.sycl_devices = []

0 commit comments

Comments
 (0)