diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index 240ebe0f268e7..e2226f2ae063a 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -382,7 +382,7 @@ def open_check_file(file_name): else: config.substitutions.append(("%level_zero_options", "")) -if lit_config.params.get("test-preview-mode", False): +if lit_config.params.get("test-preview-mode", "False") != "False": config.available_features.add("preview-mode") else: # Check for sycl-preview library @@ -1086,7 +1086,7 @@ def get_sycl_ls_verbose(sycl_device, env): else: config.intel_driver_ver[full_name] = {} -if lit_config.params.get("compatibility_testing", False): +if lit_config.params.get("compatibility_testing", "False") != "False": config.substitutions.append(("%clangxx", " true ")) config.substitutions.append(("%clang", " true ")) else: