Skip to content

Commit

Permalink
fs: skip passthrough test for older kernels
Browse files Browse the repository at this point in the history
Change-Id: I8e23afdfeb6ff65211f6ac3413e8e86e66341313
  • Loading branch information
hanwen committed Aug 29, 2024
1 parent afb9051 commit 1a7d98b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/passthrough_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ func TestPassthrough(t *testing.T) {
}
defer server.Unmount()

if 0 == server.KernelSettings().Flags64()&fuse.CAP_PASSTHROUGH {
t.Skip("Kernel does not support passthrough")
}
fn := mnt + "/file"
want := "hello there"
if err := os.WriteFile(fn, []byte(want), 0666); err != nil {
Expand Down

0 comments on commit 1a7d98b

Please sign in to comment.