aboutsummaryrefslogtreecommitdiff
path: root/test/system/helpers.bash
diff options
context:
space:
mode:
Diffstat (limited to 'test/system/helpers.bash')
-rw-r--r--test/system/helpers.bash10
1 files changed, 10 insertions, 0 deletions
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
#########