From da98c887785cd7ec3dff34418c4ca6ce1640e2dc Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 27 Jul 2022 10:46:24 -0400 Subject: Cirrus: enable Fedora 36 aarch64 tasks on EC2 new file: test/e2e/config_arm64.go Tests that fail on aarch64 have been skipped with `skip_if_aarch64`. Co-authored-by: Chris Evich Co-authored-by: Ed Santiago Signed-off-by: Lokesh Mandvekar --- test/system/helpers.bash | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/system/helpers.bash') diff --git a/test/system/helpers.bash b/test/system/helpers.bash index b9da2d89a..19bc6547c 100644 --- a/test/system/helpers.bash +++ b/test/system/helpers.bash @@ -379,6 +379,10 @@ function is_netavark() { return 1 } +function is_aarch64() { + [ "$(uname -m)" == "aarch64" ] +} + # Returns the OCI runtime *basename* (typically crun or runc). Much as we'd # love to cache this result, we probably shouldn't. function podman_runtime() { @@ -546,6 +550,12 @@ function skip_if_root_ubuntu { fi } +function skip_if_aarch64 { + if is_aarch64; then + skip "${msg:-Cannot run this test on aarch64 systems}" + fi +} + ######### # die # Abort with helpful message ######### -- cgit v1.2.3-54-g00ecf