diff options
author | Jakob Unterwurzacher | 2025-07-14 21:28:36 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2025-07-14 21:28:36 +0200 |
commit | 0c338cfc7a20ff2dc9d4ea7e93306411d276f15b (patch) | |
tree | 033b5df6168c6a8a388debfe0bd677c7745b5ec2 | |
parent | cd288aba1de53d15a364a4e13d83de4bacc83878 (diff) |
tests: TestBtrfsQuirks: skip if mkfs.btrfs is not installed
Fixes https://github.com/rfjakob/gocryptfs/issues/930
-rw-r--r-- | tests/root_test/root_test.go | 4 |
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 { |