Skip to content

Commit

Permalink
Debutg tests
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Jan 29, 2025
1 parent 2259ec9 commit cd3fe2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/install_target_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var _ = Describe("kairos install test different targets", Label("install-test-ta
if CurrentSpecReport().Failed() {
gatherLogs(vm)
}

Expect(vm.Destroy(nil)).ToNot(HaveOccurred())

})
Expand Down
6 changes: 5 additions & 1 deletion tests/zfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ var _ = Describe("kairos zfs test", Label("zfs"), func() {
})

By("creating a pool with two disks", func() {
out, err := vm.Sudo("dd if=/dev/zero of=/usr/local/disk0.img bs=1M count=1024")
// Check mods
out, err := vm.Sudo("lsmod")
Expect(err).ToNot(HaveOccurred(), out)
Expect(out).To(ContainSubstring("zfs"), out)
out, err = vm.Sudo("dd if=/dev/zero of=/usr/local/disk0.img bs=1M count=1024")
Expect(err).ToNot(HaveOccurred(), out)
out, err = vm.Sudo("dd if=/dev/zero of=/usr/local/disk1.img bs=1M count=1024")
Expect(err).ToNot(HaveOccurred(), out)
Expand Down

0 comments on commit cd3fe2e

Please sign in to comment.