Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vfs: skip TestCaseSensitivity on case insensitive backends

Ivan Andreevd0c6e5cf5a4c
diff --git a/vfs/vfs_case_test.go b/vfs/vfs_case_test.go
index 96fe576e1..9e26b404c 100644
--- a/vfs/vfs_case_test.go
+++ b/vfs/vfs_case_test.go
@@ -14,6 +14,10 @@ func TestCaseSensitivity(t *testing.T) {
r := fstest.NewRun(t)
defer r.Finalise()
+ if r.Fremote.Features().CaseInsensitive {
+ t.Skip("Can't test case sensitivity - this remote is officially not case-sensitive")
+ }
+
// Create test files
ctx := context.Background()
file1 := r.WriteObject(ctx, "FiLeA", "data1", t1)
@@ -24,6 +28,7 @@ func TestCaseSensitivity(t *testing.T) {
// On a case-Sensitive remote this will be a separate file.
// On a case-INsensitive remote this file will either not exist
// or overwrite file2 depending on how file system diverges.
+ // On a box.com remote this step will even fail.
file3 := r.WriteObject(ctx, "FilEb", "data3", t3)
// Create a case-Sensitive and case-INsensitive VFS
@@ -53,8 +58,7 @@ func TestCaseSensitivity(t *testing.T) {
// The remaining test is only meaningful on a case-Sensitive file system.
if !remoteIsOK {
- t.Logf("SKIP: TestCaseSensitivity - remote is not fully case-sensitive")
- return
+ t.Skip("Can't test case sensitivity - this remote doesn't comply as case-sensitive")
}
// Continue with test as the underlying remote is fully case-Sensitive.