Skip to content

Commit 5d517ab

Browse files
[SYCL][E2E] Fix Win path handling in lit config (#18135)
Fixes consequence of 4150bdf f'"{path}"' converts empty string to the string with quotes and length == 2 that breaks checks for not empty path. Fixes that. Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
1 parent dbd2815 commit 5d517ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test-e2e/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def check_igc_tag_and_add_feature():
251251

252252
def quote_path(path):
253253
if platform.system() == "Windows":
254-
return f'"{path}"'
254+
return f'"{path}"' if path else ""
255255
return shlex.quote(path)
256256

257257
# Call the function to perform the check and add the feature

0 commit comments

Comments
 (0)