From 01ea1f76641603e6dc0845ce2bc59c1eab2e8a3f Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 17 Aug 2026 18:44:56 +0000 Subject: Testsuite: T9014: restrict to amd64/arm64 and require --uefi on arm64 QEMU_CONFIG only defines profiles for amd64 and arm64, and arm64 guests only boot via UEFI, so fail fast with a clear message instead of running into an unsupported-architecture error deep into the install. --- scripts/check-qemu-install | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts') diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index b3dd8ce6..85d6c024 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -166,6 +166,13 @@ args = parser.parse_args() if os.geteuid() != 0: exit('You need to have root privileges to run this script.') +if platform.machine() not in ['amd64', 'x86_64', 'arm64', 'aarch64']: + exit(f'Unsupported host architecture "{platform.machine()}" - this script ' + 'only runs on amd64 or arm64 hosts.') + +if platform.machine() in ['arm64', 'aarch64'] and not args.uefi: + exit('--uefi is mandatory when running on arm64 hosts.') + if args.cloud_init: hostname = CI_CONFIG_ARGS['hostname'] op_mode_prompt = rf'vyos@{hostname}:~\$' -- cgit v1.2.3