Skip to content

Commit 983aaaa

Browse files
[SYCL][E2E][LIT] Fix processing of boolean parameters (#18893)
They're read as strings, not booleans. Need to be processed as such.
1 parent fbf735a commit 983aaaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/test-e2e/lit.cfg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def open_check_file(file_name):
382382
else:
383383
config.substitutions.append(("%level_zero_options", ""))
384384

385-
if lit_config.params.get("test-preview-mode", False):
385+
if lit_config.params.get("test-preview-mode", "False") != "False":
386386
config.available_features.add("preview-mode")
387387
else:
388388
# Check for sycl-preview library
@@ -1086,7 +1086,7 @@ def get_sycl_ls_verbose(sycl_device, env):
10861086
else:
10871087
config.intel_driver_ver[full_name] = {}
10881088

1089-
if lit_config.params.get("compatibility_testing", False):
1089+
if lit_config.params.get("compatibility_testing", "False") != "False":
10901090
config.substitutions.append(("%clangxx", " true "))
10911091
config.substitutions.append(("%clang", " true "))
10921092
else:

0 commit comments

Comments
 (0)