test: fix macOS detection

This commit is contained in:
Sjors Provoost
2025-07-08 11:24:27 +02:00
parent a8bff38236
commit 5bd73d96a3

View File

@@ -211,7 +211,7 @@ def download_binary(tag, args) -> int:
Path(archive).unlink()
if tag >= "v23" and platform == "arm64-apple-darwin":
if tag >= "v23" and args.host == "arm64-apple-darwin":
# Starting with v23 there are arm64 binaries for ARM (e.g. M1, M2) macs, but they have to be signed to run
binary_path = f'{os.getcwd()}/{tag}/bin/'