Skip to content

Commit 3a02d03

Browse files
jleboncgwalters
authored andcommitted
tests: Adapt for Fedora 35
This adapts the client tests for FCOS' move to Fedora 35.
1 parent ddc6ec4 commit 3a02d03

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

tests/kolainst/destructive/layering-modules

+11-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,18 @@ cd $(mktemp -d)
77

88
set -x
99

10+
versionid=$(grep -E '^VERSION_ID=' /etc/os-release)
11+
versionid=${versionid:11} # trim off VERSION_ID=
12+
1013
# Let's start by trying to install a bona fide module.
11-
rpm-ostree ex module install cri-o:1.20/default
14+
case $versionid in
15+
34) module=cri-o:1.20/default;;
16+
# yes, this is going backwards, see:
17+
# https://github.com/coreos/fedora-coreos-tracker/issues/767#issuecomment-917191270
18+
35) module=cri-o:1.19/default;;
19+
*) assert_not_reached "Unsupported Fedora version: $versionid";;
20+
esac
21+
rpm-ostree ex module install "${module}"
1222
rpm-ostree cleanup -p
1323

1424
rm -rf /etc/yum.repos.d/*

tests/vmcheck/test-override-kernel.sh

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ case $versionid in
4545
32) kernel_release=5.6.6-300.fc32.x86_64;;
4646
33) kernel_release=5.8.15-301.fc33.x86_64;;
4747
34) kernel_release=5.11.12-300.fc34.x86_64;;
48+
35) kernel_release=5.14.10-300.fc35.x86_64;;
4849
*) assert_not_reached "Unsupported Fedora version: $versionid";;
4950
esac
5051
assert_not_file_has_content current-dblist.txt $kernel_release

0 commit comments

Comments
 (0)