diff options
author | Sergey Sharybin <sergey@blender.org> | 2020-12-01 19:16:48 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2020-12-01 19:16:48 +0300 |
commit | 1176591574f9ec5ead51c512dbe77c3cc7972d6d (patch) | |
tree | cb2b9e1c0c4cb34562afefd8de998ea12df83a36 /build_files/buildbot | |
parent | 33b7d53df08aa7f3410aa0324e9e2a612514eade (diff) |
Codesign: Allo non-zero exit code for signtool on Windows
Diffstat (limited to 'build_files/buildbot')
-rw-r--r-- | build_files/buildbot/codesign/windows_code_signer.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build_files/buildbot/codesign/windows_code_signer.py b/build_files/buildbot/codesign/windows_code_signer.py index 251dd856c8a..db185788a56 100644 --- a/build_files/buildbot/codesign/windows_code_signer.py +++ b/build_files/buildbot/codesign/windows_code_signer.py @@ -64,7 +64,12 @@ class WindowsCodeSigner(BaseCodeSigner): def run_codesign_tool(self, filepath: Path) -> None: command = self.get_sign_command_prefix() + [filepath] - codesign_output = self.check_output_or_mock(command, util.Platform.WINDOWS) + + try: + codesign_output = self.check_output_or_mock(command, util.Platform.WINDOWS) + except subprocess.CalledProcessError as e: + raise SigntoolException(f'Error running signtool {e}') + logger_server.info(f'signtool output:\n{codesign_output}') got_number_of_success = False |