From 0c338cfc7a20ff2dc9d4ea7e93306411d276f15b Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 14 Jul 2025 21:28:36 +0200 Subject: tests: TestBtrfsQuirks: skip if mkfs.btrfs is not installed Fixes https://github.com/rfjakob/gocryptfs/issues/930 --- tests/root_test/root_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- cgit v1.2.3