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:
parent
ec72926734
commit
266299a931
@ -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__":
|
||||
|
Loading…
Reference in New Issue
Block a user