Skip to content

Commit e19c435

Browse files
committed
Remove line filtering on REQUIRES: run-mode tests
1 parent 201712b commit e19c435

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sycl/test-e2e/format.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def execute(self, test, litConfig):
203203

204204
devices_for_test = []
205205
triples = set()
206+
unsplit_test = False
206207
if "run-mode" not in test.config.available_features:
207208
triples = self.select_triples_for_test(test)
208209
if not triples:
@@ -219,6 +220,11 @@ def execute(self, test, litConfig):
219220
for sycl_device in devices_for_test:
220221
(backend, _) = sycl_device.split(":")
221222
triples.add(get_triple(test, backend))
223+
for l in test.config.requires:
224+
if "run-mode" in re.findall("[-+=._a-zA-Z0-9]+", l):
225+
unsplit_test = True
226+
break
227+
222228

223229
substitutions = lit.TestRunner.getDefaultSubstitutions(test, tmpDir, tmpBase)
224230
substitutions.append(("%{sycl_triple}", format(",".join(triples))))
@@ -279,7 +285,7 @@ def get_extra_env(sycl_devices):
279285
continue
280286

281287
# Filter commands based on split-mode
282-
is_run_line = any(
288+
is_run_line = unsplit_test or any(
283289
i in directive.command
284290
for i in ["%{run}", "%{run-unfiltered-devices}", "%if run-mode"]
285291
)

0 commit comments

Comments
 (0)