summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/root_test/root_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/root_test/root_test.go b/tests/root_test/root_test.go
index 7bc3ebc..42b3694 100644
--- a/tests/root_test/root_test.go
+++ b/tests/root_test/root_test.go
@@ -319,6 +319,10 @@ func TestBtrfsQuirks(t *testing.T) {
}
// Format as Btrfs
+ _, err = exec.LookPath("mkfs.btrfs")
+ if err != nil {
+ t.Skip("mkfs.btrfs not found, skipping test")
+ }
cmd := exec.Command("mkfs.btrfs", img)
out, err := cmd.CombinedOutput()
if err != nil {