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

test_all: fix crash when using -clean

Nick Craig-Wood20c5ca08fbf4
diff --git a/fstest/test_all/test_all.go b/fstest/test_all/test_all.go
index 22c3032f4..a6703b504 100644
--- a/fstest/test_all/test_all.go
+++ b/fstest/test_all/test_all.go
@@ -12,6 +12,7 @@ Make TesTrun have a []string of flags to try - that then makes it generic
*/
import (
+ "context"
"flag"
"log"
"math/rand"
@@ -22,6 +23,7 @@ import (
"time"
_ "github.com/rclone/rclone/backend/all" // import all fs
+ "github.com/rclone/rclone/fs/config/configfile"
"github.com/rclone/rclone/lib/pacer"
)
@@ -70,6 +72,7 @@ func main() {
log.Println("test_all should be run from the root of the rclone source code")
log.Fatal(err)
}
+ configfile.LoadConfig(context.Background())
// Seed the random number generator
rand.Seed(time.Now().UTC().UnixNano())