Skip to content

Commit

Permalink
ci/cli: fix active_mode check in upgrade test
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Devulder <[email protected]>
  • Loading branch information
ldevulder committed Oct 21, 2024
1 parent 2d70445 commit 367d4be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,14 +378,14 @@ var _ = Describe("E2E - Upgrading node", Label("upgrade-node"), func() {
_ = RunSSHWithRetry(cl, "setsid -f reboot")

// Check the mode after reboot
out = RunSSHWithRetry(cl, "cat /run/cos/recovery_mode")
out = RunSSHWithRetry(cl, "cat /run/elemental/recovery_mode")
Expect(out).To(Not(BeEmpty()))

// Final reboot, in active mode as recovery mode is not persistent
_ = RunSSHWithRetry(cl, "setsid -f reboot")

// Check the mode after fnal reboot
out = RunSSHWithRetry(cl, "cat /run/cos/active_mode")
out = RunSSHWithRetry(cl, "cat /run/elemental/active_mode")
Expect(out).To(Not(BeEmpty()))
})
}
Expand Down

0 comments on commit 367d4be

Please sign in to comment.