Skip to content

Commit 9185005

Browse files
henrywangcgwalters
authored andcommitted
test: Fix factory reset Access denied error on CS10
Sometimes systemd daemons are still running old binaries and response "Access denied" when send reboot request Force a full sync before reboot and Allow more delay for bootc to settle Signed-off-by: Xiaofeng Wang <[email protected]>
1 parent c0b9cde commit 9185005

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ 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+
# Check reset status before reboot
45+
RUST_LOG=trace bootc status
46+
47+
# Sometimes systemd daemons are still running old binaries and response "Access denied" when send reboot request
48+
# Force a full sync before reboot
49+
sync
50+
# Allow more delay for bootc to settle
51+
sleep 30sec
52+
4453
tmt-reboot
4554
}
4655

0 commit comments

Comments
 (0)