Skip to content

Commit

Permalink
fix(test): depend on the CPU type rather than a specific instance
Browse files Browse the repository at this point in the history
This makes the tests work in other instances that use the same CPU.

Signed-off-by: Pablo Barbáchano <[email protected]>
  • Loading branch information
pb8o committed Nov 15, 2023
1 parent af47fb3 commit bccf2d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/framework/artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ def select_supported_kernels():
hlv = packaging.version.parse(global_props.host_linux_version)
supported_kernels = [r"vmlinux-4.14.\d+"]
if (
global_props.instance == "c7g.metal"
global_props.cpu_model == "ARM_NEOVERSE_V1"
and global_props.host_linux_version == "4.14"
):
supported_kernels.append(r"vmlinux-5.10-no-sve.bin")
else:
supported_kernels.append(r"vmlinux-5.10.\d+")

# Support Linux 6.1 guest in a limited fashion
if global_props.instance == "c7g.metal" and (hlv.major, hlv.minor) >= (6, 1):
if global_props.cpu_model == "ARM_NEOVERSE_V1" and (hlv.major, hlv.minor) >= (6, 1):
supported_kernels.append(r"vmlinux-6.1.\d+")

return supported_kernels
Expand Down

0 comments on commit bccf2d4

Please sign in to comment.