0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-27 23:27:11 +01:00

SERVER-96012 Retry codesign dev binaries for testing on macos (#28293)

GitOrigin-RevId: 00afb717506f28ff9190241e7db96d0dfb7be347
This commit is contained in:
Mikhail Shchatko 2024-10-22 11:01:47 +03:00 committed by MongoDB Bot
parent ec72926734
commit 266299a931

View File

@ -37,9 +37,7 @@ def main():
if not os.path.isfile(binary_path):
continue
print(f"Signing {binary}")
subprocess.run(
[
cmd = [
"/usr/bin/codesign",
"-s",
"-",
@ -47,9 +45,14 @@ def main():
"--entitlements",
entitlements_file,
binary_path,
],
check=True,
)
]
print(f"Signing {binary}")
try:
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError:
print(f"Signing {binary} retry")
subprocess.run(cmd, check=True)
if __name__ == "__main__":