Skip to content

Commit

Permalink
⬆️ Bump framework (#2915)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Oct 4, 2024
1 parent ddd538f commit 603c174
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ARG TRIVY_VERSION=0.55.2
# renovate: datasource=docker depName=anchore/grype versioning=semver
ARG GRYPE_VERSION=v0.80.1
# renovate: datasource=docker depName=quay.io/kairos/framework versioning=semver
ARG KAIROS_FRAMEWORK_VERSION=v2.12.1
ARG KAIROS_FRAMEWORK_VERSION=v2.12.4
# renovate: datasource=docker depName=quay.io/kairos/osbuilder-tools versioning=semver
ARG OSBUILDER_VERSION=v0.300.3
# renovate: datasource=docker depName=golang versioning=semver
Expand Down
9 changes: 7 additions & 2 deletions tests/reset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var _ = Describe("kairos reset test", Label("reset-test"), func() {
Or(
ContainSubstring("foobarzz"),
))
By("Creating files on persistent and oem")
_, err := vm.Sudo("touch /usr/local/test")
Expect(err).ToNot(HaveOccurred())

Expand All @@ -46,19 +47,23 @@ var _ = Describe("kairos reset test", Label("reset-test"), func() {

vm.HasFile("/oem/test")
vm.HasFile("/usr/local/test")

By("Setting the next entry to statereset")
_, err = vm.Sudo("grub2-editenv /oem/grubenv set next_entry=statereset")
Expect(err).ToNot(HaveOccurred())

By("Rebooting")
vm.Reboot()

expectRebootedToActive(vm)

By("Checking that persistent file is gone")
Eventually(func() string {
out, _ := vm.Sudo("if [ -f /usr/local/test ]; then echo ok; else echo wrong; fi")
return out
}, 3*time.Minute, 1*time.Second).Should(
Or(
ContainSubstring("wrong"),
))
By("Checking that oem file is still there")
Eventually(func() string {
out, _ := vm.Sudo("if [ -f /oem/test ]; then echo ok; else echo wrong; fi")
return out
Expand Down

0 comments on commit 603c174

Please sign in to comment.