test_all: fix crash when using -clean
This commit is contained in:
parent
fc57648b75
commit
20c5ca08fb
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,7 @@ Make TesTrun have a []string of flags to try - that then makes it generic
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"flag"
|
"flag"
|
||||||
"log"
|
"log"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
@ -22,6 +23,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
_ "github.com/rclone/rclone/backend/all" // import all fs
|
_ "github.com/rclone/rclone/backend/all" // import all fs
|
||||||
|
"github.com/rclone/rclone/fs/config/configfile"
|
||||||
"github.com/rclone/rclone/lib/pacer"
|
"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.Println("test_all should be run from the root of the rclone source code")
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
configfile.LoadConfig(context.Background())
|
||||||
|
|
||||||
// Seed the random number generator
|
// Seed the random number generator
|
||||||
rand.Seed(time.Now().UTC().UnixNano())
|
rand.Seed(time.Now().UTC().UnixNano())
|
||||||
|
|
Loading…
Reference in a new issue