Skip to content

Commit 93e9c31

Browse files
committed
tests: Run composefs oci pull test on composefs systems
The cfs oci pull command already calls prepare_for_write() via get_storage() -> get_locked_sysroot(), so it has write access to sysroot even on composefs systems. Remove the conditional that was skipping the test. Assisted-by: Claude Code (Sonnet 4.5)
1 parent f3762cf commit 93e9c31

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tmt/tests/booted/readonly/030-test-composefs.nu

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ tap begin "composefs integration smoke test"
77
let st = bootc status --json | from json
88
let is_composefs = ($st.status.booted.composefs? != null)
99

10-
if $is_composefs {
11-
# When already on composefs, we can only test read-only operations
12-
print "# TODO composefs: skipping pull test - cfs oci pull requires write access to sysroot"
13-
bootc internals cfs --help
14-
} else {
10+
if not $is_composefs {
1511
# When not on composefs, run the full test including initialization
1612
bootc internals test-composefs
17-
bootc internals cfs --help
18-
bootc internals cfs oci pull docker://busybox busybox
19-
test -L /sysroot/composefs/streams/refs/busybox
2013
}
2114

15+
# These tests work on both composefs and non-composefs systems
16+
bootc internals cfs --help
17+
bootc internals cfs oci pull docker://busybox busybox
18+
test -L /sysroot/composefs/streams/refs/busybox
19+
2220
tap ok

0 commit comments

Comments
 (0)