Skip to content

Commit 7f7d56b

Browse files
committed
Change layout of if statement checking exclusive build mode
1 parent b679fbf commit 7f7d56b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/test-e2e/format.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ def execute(self, test, litConfig):
156156

157157
devices_for_test = []
158158
triples = set()
159-
if "run-mode" in test.config.available_features:
159+
if "run-mode" not in test.config.available_features:
160+
# TODO: Use requires/unsupported to decide triples to build for
161+
triples.add("spir64")
162+
else:
160163
devices_for_test = self.select_devices_for_test(test)
161164
if not devices_for_test:
162165
return lit.Test.Result(
@@ -166,9 +169,6 @@ def execute(self, test, litConfig):
166169
for sycl_device in devices_for_test:
167170
(backend, _) = sycl_device.split(":")
168171
triples.add(get_triple(test, backend))
169-
elif "build-mode" in test.config.available_features:
170-
# TODO: Use requires/unsupported to decide triples to build for
171-
triples.add("spir64")
172172

173173
substitutions = lit.TestRunner.getDefaultSubstitutions(test, tmpDir, tmpBase)
174174
substitutions.append(("%{sycl_triple}", format(",".join(triples))))

0 commit comments

Comments
 (0)