Skip to content

Commit db955ed

Browse files
committed
tests: Skip BLI detection test when not in image-mode
The 052-test-bli-detection test asserts that Fedora 43+ systems boot without a root= kernel argument (using DPS auto-discovery instead). However, this only works when the install was performed via bootc install to-disk, which creates partitions with DPS type GUIDs. In Packit/gating CI, the system is installed via bootc install to-existing-root on a Testing Farm VM whose partitions were not created with DPS type GUIDs. The test was unconditionally failing in this environment. Fix this by checking for the BCVK_EXPORT environment variable, which is set by xtask when running tests via bcvk (image-mode). When not in image-mode, the test skips since DPS root discovery cannot work on partitions that lack the proper type GUIDs. Fixes: #2123 Assisted-by: OpenCode (Claude Opus 4.6) Signed-off-by: Joseph Marrero Corchado <jmarrero@redhat.com>
1 parent 8dc77c9 commit db955ed

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tmt/tests/booted/readonly/052-test-bli-detection.nu

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ if not ($os_id == "fedora" and $version_id >= 43) {
2929
exit 0
3030
}
3131

32+
# DPS root discovery only works when bootc install to-disk created the
33+
# partitions with DPS type GUIDs. In Packit/gating CI the system was
34+
# installed via to-existing-root on pre-existing partitions, so skip.
35+
# BCVK_EXPORT=1 is set by xtask when running via bcvk (image-mode).
36+
if ($env.BCVK_EXPORT? | default "" | is-empty) {
37+
print "# skip: not running in image-mode (BCVK_EXPORT not set)"
38+
tap ok
39+
exit 0
40+
}
41+
3242
print $"Running on ($os_id) ($version_id), checking DPS root discovery"
3343

3444
let cmdline = (open /proc/cmdline)

0 commit comments

Comments
 (0)