Skip to content

Commit 739cc2c

Browse files
committed
test: Debug factory reset failure on CS10
Signed-off-by: Xiaofeng Wang <[email protected]>
1 parent d6a269f commit 739cc2c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tmt/tests/booted/test-factory-reset.nu

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,16 @@ def initial_build [] {
4141
# nu's cp doesn't have -T
4242
/usr/bin/cp -r -T $workdir_root $"($new_stateroot_path)/($workdir_root)"
4343

44-
tmt-reboot
44+
RUST_LOG=trace bootc status
45+
sync
46+
sleep 10sec
47+
# List bootloader entries
48+
ls /boot/loader/entries/
49+
50+
# Show only title, version, stateroot lines from all entries
51+
open /boot/loader/entries/* | lines | where ($it =~ 'title|version|stateroot') | each {|l| print $l }
52+
53+
tmt-reboot -c "systemctl reboot || sleep 10; systemctl --force --force reboot || reboot -f"
4554
}
4655

4756
# The second boot; verify we're in the factory reset deployment

0 commit comments

Comments
 (0)