Skip to content

Commit 3d7065a

Browse files
committed
System tests: skip checkpoint tests on Rawhide/RHEL/CentOS Stream
These tests break all the time on said environments. Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 246a688 commit 3d7065a

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

test/system/520-checkpoint.bats

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ load helpers.network
88

99
CHECKED_ROOTLESS=
1010
function setup() {
11+
# Often breaks on RHEL/CentOS Stream and Fedora Rawhide
12+
skip_if_rhel_or_centos
13+
skip_if_rawhide
14+
1115
# None of these tests work rootless....
1216
if is_rootless; then
1317
# ...however, is that a genuine cast-in-stone limitation, or one

test/system/helpers.bash

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,14 @@ function is_aarch64() {
733733
[ "$(uname -m)" == "aarch64" ]
734734
}
735735

736+
function is_rhel_or_centos() {
737+
[ -f /etc/redhat-release ] && grep -Eiq "Red Hat Enterprise Linux|CentOS Stream" /etc/redhat-release
738+
}
739+
740+
function is_rawhide() {
741+
[ -f /etc/redhat-release ] && grep -Eiq "Rawhide" /etc/redhat-release
742+
}
743+
736744
function selinux_enabled() {
737745
/usr/sbin/selinuxenabled 2> /dev/null
738746
}
@@ -935,6 +943,17 @@ function skip_if_aarch64 {
935943
fi
936944
}
937945

946+
function skip_if_rhel_or_centos {
947+
if is_rhel_or_centos; then
948+
skip "${msg:-skip if RHEL or CentOS Stream}"
949+
fi
950+
}
951+
952+
function skip_if_rawhide {
953+
if is_rawhide; then
954+
skip "${msg:-skip if Fedora Rawhide}"
955+
fi
956+
}
938957
#########
939958
# die # Abort with helpful message
940959
#########

test/tmt/system.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set -exo pipefail
44

55
uname -r
66

7+
cat /etc/redhat-release
8+
79
loginctl enable-linger "$ROOTLESS_USER"
810

911
rpm -q \

0 commit comments

Comments
 (0)