From 985624e421978785b57d8be71798ec46cfeb2fac Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Tue, 17 Dec 2024 22:25:54 +0100 Subject: [PATCH] check path correctly --- tools/manifest/sourcefile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/manifest/sourcefile.py b/tools/manifest/sourcefile.py index ac7112c34d2a1c..4e74fb207709bb 100644 --- a/tools/manifest/sourcefile.py +++ b/tools/manifest/sourcefile.py @@ -743,8 +743,9 @@ def has_testdriver(self) -> Optional[bool]: def ___get_testdriver_include_path(self) -> Optional[str]: if self.script_metadata: for (meta, content) in self.script_metadata: - if meta.strip() == 'script' and content.startswith( - '/resources/testdriver.js'): + if meta.strip() == 'script' and ( + content == '/resources/testdriver.js' or content.startswith( + '/resources/testdriver.js?')): return content.strip() if self.root is None: