Skip to content

Commit a3e31e4

Browse files
authored
Merge pull request #1567 from KKoukiou/run-bootc-tests-rhel
bootc: enable tests on rhel-10
2 parents d071351 + cbc36ba commit a3e31e4

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

bootc-basic.sh

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Ignore unused variable parsed out by tooling scripts as test tags metadata
2222
# shellcheck disable=SC2034
23-
TESTTYPE="skip-on-rhel-9 payload bootc rhel58215 gh1574"
23+
TESTTYPE="skip-on-rhel-9 payload bootc gh1574"
2424

2525
. ${KSTESTDIR}/functions.sh
2626

@@ -45,16 +45,29 @@ copy_interesting_files_from_system() {
4545
# The location of aforementioned files is different in an ostree system
4646

4747
# Find root device - use list-filesystems to find filesystem mounted at /
48+
49+
# First try btrfs root subvolume
4850
root_device="$(guestfish ${args} <<< "
4951
launch
5052
list-filesystems
5153
" 2>/dev/null | awk -F'[:/]' '/btrfsvol:.*root/ {print "/" $3 "/" $4}')"
54+
path_prefix="/ostree/deploy/test-stateroot"
55+
56+
if [ -n "${root_device}" ]; then
57+
path_prefix="/root$path_prefix"
58+
else
59+
# Fallback to standard root device on XFS
60+
root_device="$(guestfish ${args} <<< "
61+
launch
62+
list-filesystems
63+
" 2>/dev/null | grep root | awk -F: '{print $1}')"
64+
fi
5265

53-
for item in /root/ostree/deploy/test-stateroot/var/roothome/original-ks.cfg \
54-
/root/ostree/deploy/test-stateroot/var/roothome/anaconda-ks.cfg \
55-
/root/ostree/deploy/test-stateroot/var/roothome/anabot.log \
56-
/root/ostree/deploy/test-stateroot/var/log/anaconda/ \
57-
/root/ostree/deploy/test-stateroot/var/roothome/RESULT
66+
for item in ${path_prefix}/var/roothome/original-ks.cfg \
67+
${path_prefix}/var/roothome/anaconda-ks.cfg \
68+
${path_prefix}/var/roothome/anabot.log \
69+
${path_prefix}/var/log/anaconda/ \
70+
${path_prefix}/var/roothome/RESULT
5871
do
5972
guestfish ${args} <<< "
6073
launch

bootc-luks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Ignore unused variable parsed out by tooling scripts as test tags metadata
2020
# shellcheck disable=SC2034
21-
TESTTYPE="skip-on-rhel payload bootc luks gh1574"
21+
TESTTYPE="skip-on-rhel-9 payload bootc luks gh1574"
2222

2323
. ${KSTESTDIR}/functions.sh
2424

containers/runner/skip-testtypes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ rhel10_centos10_disabled_array=(
7070
gh1213 # harddrive-iso-single failing
7171
gh1536 # groups-and-envs-* failing
7272
gh1538 # packages-ignorebroken not implemented
73-
rhel58215 # bootc-basic waiting for feature backport
7473
)
7574

7675
rhel10_skip_array=(

0 commit comments

Comments
 (0)