From c77662280d0aef3513249f4a2b1154d8fd88dc21 Mon Sep 17 00:00:00 2001 From: "Wu, Yingcong" Date: Mon, 28 Apr 2025 13:12:40 +0200 Subject: [PATCH 1/2] save --- sycl/test-e2e/lit.cfg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index a396c84a95863..3539083b05a5d 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -250,8 +250,10 @@ def check_igc_tag_and_add_feature(): def quote_path(path): + if not path: + return '' if platform.system() == "Windows": - return f'"{path}"' if path else "" + return f'"{path}"' return shlex.quote(path) # Call the function to perform the check and add the feature From 9439478c8898cbb7e8ff3ddfefef34d8a0544d70 Mon Sep 17 00:00:00 2001 From: "Wu, Yingcong" Date: Mon, 28 Apr 2025 13:21:11 +0200 Subject: [PATCH 2/2] format --- sycl/test-e2e/lit.cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index 3539083b05a5d..c40598c638659 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -251,7 +251,7 @@ def check_igc_tag_and_add_feature(): def quote_path(path): if not path: - return '' + return "" if platform.system() == "Windows": return f'"{path}"' return shlex.quote(path)