File tree Expand file tree Collapse file tree 4 files changed +49
-3
lines changed Expand file tree Collapse file tree 4 files changed +49
-3
lines changed Original file line number Diff line number Diff line change 78
78
79
79
# Ignore until golang is updated in distro buildroot to go 1.23.3+
80
80
- job : copr_build
81
- trigger : ignore
81
+ trigger : pull_request
82
82
packages : [podman-centos]
83
83
notifications : *packit_generic_failure_notification
84
84
enable_net : true
@@ -116,9 +116,24 @@ jobs:
116
116
- type : repository-file
117
117
id : https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-$releasever/rhcontainerbot-podman-next-fedora-$releasever.repo
118
118
119
+ # Tests on CentOS Stream
119
120
- job : tests
120
- identifier : cockpit-revdeps
121
121
trigger : pull_request
122
+ packages : [podman-centos]
123
+ notifications : *packit_generic_failure_notification
124
+ targets :
125
+ - centos-stream-10
126
+ - centos-stream-9
127
+ tmt_plan : " /plans/system/*"
128
+ tf_extra_params :
129
+ environments :
130
+ - artifacts :
131
+ - type : repository-file
132
+ id : https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/centos-stream-$releasever/rhcontainerbot-podman-next-centos-stream-$releasever.repo
133
+
134
+ - job : tests
135
+ identifier : cockpit-revdeps
136
+ trigger : ignore
122
137
packages : [podman-fedora]
123
138
notifications :
124
139
failure_comment :
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,20 @@ function is_aarch64() {
733
733
[ " $( uname -m) " == " aarch64" ]
734
734
}
735
735
736
+ function is_rhel_or_centos() {
737
+ if find /etc/redhat-release && grep -Eiq " Red Hat Enterprise Linux|CentOS Stream" /etc/redhat-release; then
738
+ return 0
739
+ fi
740
+ return 1
741
+ }
742
+
743
+ function is_rawhide() {
744
+ if find /etc/fedora-release && grep -Eiq " Rawhide" /etc/fedora-release; then
745
+ return 0
746
+ fi
747
+ return 1
748
+ }
749
+
736
750
function selinux_enabled() {
737
751
/usr/sbin/selinuxenabled 2> /dev/null
738
752
}
@@ -935,6 +949,17 @@ function skip_if_aarch64 {
935
949
fi
936
950
}
937
951
952
+ function skip_if_rhel_or_centos {
953
+ if is_rhel_or_centos; then
954
+ skip " ${msg:- skip if RHEL or CentOS Stream} "
955
+ fi
956
+ }
957
+
958
+ function skip_if_rawhide {
959
+ if is_rawhide; then
960
+ skip " ${msg:- skip if Fedora Rawhide} "
961
+ fi
962
+ }
938
963
# ########
939
964
# die # Abort with helpful message
940
965
# ########
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 \
@@ -23,7 +25,7 @@ rpm -q \
23
25
systemd
24
26
25
27
export system_service_cmd=" /usr/bin/podman system service --timeout=0 &"
26
- export test_cmd=" whoami && cd /usr/share/podman/test/system && PODMAN_TESTING=/usr/bin/podman-testing bats . "
28
+ export test_cmd=" whoami && cd /usr/share/podman/test/system && PODMAN_TESTING=/usr/bin/podman-testing bats 520-checkpoint.bats "
27
29
28
30
if [[ -z $1 ]]; then
29
31
if [[ $PODMAN == " /usr/bin/podman-remote" ]]; then
You can’t perform that action at this time.
0 commit comments