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

gitannex: speed up the end to end tests with testremote --fast

Nick Craig-Woodb3168b3ad6ef
diff --git a/cmd/gitannex/e2e_test.go b/cmd/gitannex/e2e_test.go
index 62aae1ea3..c6d801ffb 100644
--- a/cmd/gitannex/e2e_test.go
+++ b/cmd/gitannex/e2e_test.go
@@ -247,7 +247,16 @@ func TestEndToEnd(t *testing.T) {
"rcloneremotename=MyRcloneRemote", "rcloneprefix="+testingContext.ephemeralRepoDir,
"rclonelayout="+string(mode))
- testingContext.runInRepo(t, "git", "annex", "testremote", "MyTestRemote")
+ // Layout modes only vary how object paths are constructed, so
+ // one layout mode gets the full testremote suite for depth. The
+ // rest use --fast, which still exercises every special remote
+ // protocol operation but skips the key size and chunking matrix
+ // that mostly tests git-annex itself.
+ if mode == layoutModeNodir {
+ testingContext.runInRepo(t, "git", "annex", "testremote", "MyTestRemote")
+ } else {
+ testingContext.runInRepo(t, "git", "annex", "testremote", "--fast", "MyTestRemote")
+ }
})
}
}