File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ load helpers.network
8
8
9
9
CHECKED_ROOTLESS=
10
10
function setup() {
11
+ # Often breaks on RHEL/CentOS Stream and Fedora Rawhide
12
+ skip_if_rhel_or_centos
13
+ skip_if_rawhide
14
+
11
15
# None of these tests work rootless....
12
16
if is_rootless; then
13
17
# ...however, is that a genuine cast-in-stone limitation, or one
Original file line number Diff line number Diff line change @@ -733,6 +733,14 @@ function is_aarch64() {
733
733
[ " $( uname -m) " == " aarch64" ]
734
734
}
735
735
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
+
736
744
function selinux_enabled() {
737
745
/usr/sbin/selinuxenabled 2> /dev/null
738
746
}
@@ -935,6 +943,17 @@ function skip_if_aarch64 {
935
943
fi
936
944
}
937
945
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
+ }
938
957
# ########
939
958
# die # Abort with helpful message
940
959
# ########
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ set -exo pipefail
4
4
5
5
uname -r
6
6
7
+ cat /etc/redhat-release
8
+
7
9
loginctl enable-linger " $ROOTLESS_USER "
8
10
9
11
rpm -q \
You can’t perform that action at this time.
0 commit comments