Skip to content

Commit 8cf0971

Browse files
jeckersbcgwalters
authored andcommitted
tests: skip initramfs if no composefs in cmdline
The systemd unit is conditional on this so without it the test will always fail. Signed-off-by: John Eckersberg <[email protected]>
1 parent cee9315 commit 8cf0971

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tmt/tests/booted/readonly/051-test-initramfs.nu

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ if (not ("/usr/lib/bootc/initramfs-setup" | path exists)) {
88
exit 0
99
}
1010

11+
if (not (open /proc/cmdline | str contains composefs)) {
12+
print "No composefs in cmdline"
13+
exit 0
14+
}
15+
1116
journalctl -b -t bootc-root-setup.service --grep=OK
1217

1318
tap ok

0 commit comments

Comments
 (0)