From 76798d5bb1382ffd191a0b685178eee0751bf3b4 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 8 Jun 2024 10:40:42 +0100 Subject: [PATCH] sync: fix tests on backends which can't have empty directories --- fs/sync/sync_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/sync/sync_test.go b/fs/sync/sync_test.go index 5516e5d91..35039ae7f 100644 --- a/fs/sync/sync_test.go +++ b/fs/sync/sync_test.go @@ -97,6 +97,10 @@ func testCopyMetadata(t *testing.T, createEmptySrcDirs bool) { t.Skip("Skipping as metadata not supported") } + if createEmptySrcDirs && !features.CanHaveEmptyDirectories { + t.Skip("Skipping as can't have empty directories") + } + const content = "hello metadata world!" const dirPath = "metadata sub dir" const emptyDirPath = "empty metadata sub dir"