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,19 +37,22 @@ def main():
if not os.path.isfile(binary_path):
continue
cmd = [
"/usr/bin/codesign",
"-s",
"-",
"-f",
"--entitlements",
entitlements_file,
binary_path,
]
print(f"Signing {binary}")
subprocess.run(
[
"/usr/bin/codesign",
"-s",
"-",
"-f",
"--entitlements",
entitlements_file,
binary_path,
],
check=True,
)
try:
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError:
print(f"Signing {binary} retry")
subprocess.run(cmd, check=True)
if __name__ == "__main__":