Skip to content

Commit 3f80c04

Browse files
committed
Move + format ignore_line_filtering
1 parent 1b79472 commit 3f80c04

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sycl/test-e2e/format.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,18 +228,18 @@ def get_extra_env(sycl_devices):
228228

229229
substitutions.append(("%{run-unfiltered-devices}", run_unfiltered_substitution))
230230

231-
ignore_line_filtering = ("build-and-run-mode" in test.requires
232-
and test.config.test_mode == "run-only"
233-
and test.config.fallback_build_run_only
234-
)
235-
236231
new_script = []
237232
for directive in script:
238233
if not isinstance(directive, lit.TestRunner.CommandDirective):
239234
new_script.append(directive)
240235
continue
241236

242-
# Filter commands based on split-mode
237+
# Filter commands based on testing mode
238+
ignore_line_filtering = (
239+
"build-and-run-mode" in test.requires
240+
and test.config.test_mode == "run-only"
241+
and test.config.fallback_build_run_only
242+
)
243243
is_run_line = ignore_line_filtering or any(
244244
i in directive.command
245245
for i in ["%{run}", "%{run-unfiltered-devices}", "%if run-mode"]

0 commit comments

Comments
 (0)