Skip to content

Commit afc7157

Browse files
authored
test(installer): find signtool on PATH (#215)
Signed-off-by: Morgan Epp <[email protected]>
1 parent ba0a184 commit afc7157

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/installer/test_installer.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,12 @@ def test_windows_signing(self, installer_path):
483483
Number of errors: 1
484484
"""
485485
# GIVEN
486-
signtool = next(glob.iglob("C:/Program Files*/Windows Kits/*/bin/*/x64/signtool.exe"), None)
486+
# Check PATH, then SDK installation location
487+
signtool = shutil.which("signtool")
488+
if not signtool:
489+
signtool = next(
490+
glob.iglob("C:/Program Files*/Windows Kits/*/bin/*/x64/signtool.exe"), None
491+
)
487492
assert signtool, "signtool not found in expected location"
488493

489494
# WHEN

0 commit comments

Comments
 (0)