diff --git a/tests/install_target_test.go b/tests/install_target_test.go index f3db5cf73..05614c838 100644 --- a/tests/install_target_test.go +++ b/tests/install_target_test.go @@ -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()) }) diff --git a/tests/zfs_test.go b/tests/zfs_test.go index 62a3da166..2a1e2995b 100644 --- a/tests/zfs_test.go +++ b/tests/zfs_test.go @@ -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)