Skip to content

Commit

Permalink
Merge pull request #66504 from s0undt3ch/hotfix/merge-forward-into-30…
Browse files Browse the repository at this point in the history
…07.x

[3007.x] Merge 3006.x into 3007.x
  • Loading branch information
s0undt3ch committed May 10, 2024
2 parents bd99bb0 + d52e0e8 commit be2e1f2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions tools/testsuite/__init__.py
Expand Up @@ -46,7 +46,7 @@
},
"arch": {
"help": "The onedir artifact architecture",
"choices": ("x86_64", "aarch64", "amd64", "x86"),
"choices": ("x86_64", "arm64", "amd64", "x86"),
},
"slug": {
"help": "The OS slug",
Expand Down Expand Up @@ -106,7 +106,7 @@ def setup_testsuite(
ctx.exit(1)

if "arm64" in slug:
arch = "aarch64"
arch = "arm64"

ctx.warn(
"Consider this in preliminary support. There are most likely things to iron out still."
Expand Down
30 changes: 15 additions & 15 deletions tools/utils/gh.py
Expand Up @@ -40,15 +40,15 @@ def download_onedir_artifact(
)
return ExitCode.FAIL
else:
if arch == "arm64":
ctx.info(f"Turning passed arch {arch!r} into 'aarch64'")
arch = "aarch64"
if arch == "aarch64":
ctx.info(f"Turning passed arch {arch!r} into 'arm64'")
arch = "arm64"
elif arch == "x64":
ctx.info(f"Turning passed arch {arch!r} into 'x86_64'")
arch = "x86_64"
if arch not in ("x86_64", "aarch64"):
if arch not in ("x86_64", "arm64"):
ctx.error(
f"The allowed values for '--arch' on {platform.title()} are 'x86_64', 'aarch64' or 'arm64'"
f"The allowed values for '--arch' on {platform.title()} are 'x86_64' or 'arm64'"
)
return ExitCode.FAIL
artifacts_path = tools.utils.REPO_ROOT / "artifacts"
Expand Down Expand Up @@ -129,15 +129,15 @@ def download_nox_artifact(
)
return ExitCode.FAIL
else:
if arch == "arm64":
ctx.info(f"Turning passed arch {arch!r} into 'aarch64'")
arch = "aarch64"
if arch == "aarch64":
ctx.info(f"Turning passed arch {arch!r} into 'arm64'")
arch = "arm64"
elif arch == "x64":
ctx.info(f"Turning passed arch {arch!r} into 'x86_64'")
arch = "x86_64"
if arch not in ("x86_64", "aarch64"):
if arch not in ("x86_64", "arm64"):
ctx.error(
f"The allowed values for '--arch' on {platform.title()} are 'x86_64', 'aarch64' or 'arm64'"
f"The allowed values for '--arch' on {platform.title()} are 'x86_64' or 'arm64'"
)
return ExitCode.FAIL

Expand Down Expand Up @@ -204,15 +204,15 @@ def download_pkgs_artifact(
return ExitCode.FAIL
artifact_name += f"{arch}-MSI"
else:
if arch == "arm64":
ctx.info(f"Turning passed arch {arch!r} into 'aarch64'")
arch = "aarch64"
if arch == "aarch64":
ctx.info(f"Turning passed arch {arch!r} into 'arm64'")
arch = "arm64"
elif arch == "x64":
ctx.info(f"Turning passed arch {arch!r} into 'x86_64'")
arch = "x86_64"
if arch not in ("x86_64", "aarch64"):
if arch not in ("x86_64", "arm64"):
ctx.error(
f"The allowed values for '--arch' for {slug} are 'x86_64', 'aarch64' or 'arm64'"
f"The allowed values for '--arch' for {slug} are 'x86_64' or 'arm64'"
)
return ExitCode.FAIL

Expand Down

0 comments on commit be2e1f2

Please sign in to comment.