Skip to content

Commit

Permalink
Fix test checking with the wrong file name
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
  • Loading branch information
jimmykarily committed Dec 16, 2024
1 parent 610e1e1 commit 722f21a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/provider_upgrade_k8s_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ var _ = Describe("k3s upgrade test", Label("provider", "provider-upgrade-k8s"),
out, err = vm.Sudo("logrotate -vf /etc/logrotate.d/kairos")
Expect(err).ToNot(HaveOccurred())
Expect(out).To(ContainSubstring("log needs rotating"))
_, err = vm.Sudo("ls /var/log/kairos/agent-provider.log.1.gz")
Expect(err).ToNot(HaveOccurred())
// Check that we have some rotated logs
out, err = vm.Sudo("[ $(ls /var/log/kairos/agent-*log.1.gz 2>/dev/null | wc -l) -gt 0 ]")
Expect(err).ToNot(HaveOccurred(), out)

By("wait system-upgrade-controller")
Eventually(func() string {
Expand Down

0 comments on commit 722f21a

Please sign in to comment.