mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 17:14:44 +01:00
test_all: allow -list-retries to be overridden on the command line
This commit is contained in:
parent
e098924e61
commit
9403bd2990
@ -336,6 +336,9 @@ func (r *Run) Init() {
|
||||
r.cmdLine = []string{"./" + r.BinaryName()}
|
||||
}
|
||||
r.cmdLine = append(r.cmdLine, prefix+"v", prefix+"timeout", timeout.String(), "-remote", r.Remote)
|
||||
if *listRetries > 0 {
|
||||
r.cmdLine = append(r.cmdLine, "-list-retries", fmt.Sprint(*listRetries))
|
||||
}
|
||||
r.try = 1
|
||||
if *verbose {
|
||||
r.cmdLine = append(r.cmdLine, "-verbose")
|
||||
|
@ -42,6 +42,7 @@ var (
|
||||
urlBase = flag.String("url-base", "https://pub.rclone.org/integration-tests/", "Base for the online version")
|
||||
uploadPath = flag.String("upload", "", "Set this to an rclone path to upload the results here")
|
||||
verbose = flag.Bool("verbose", false, "Set to enable verbose logging in the tests")
|
||||
listRetries = flag.Int("list-retries", -1, "Number or times to retry listing - set to override the default")
|
||||
)
|
||||
|
||||
// if matches then is definitely OK in the shell
|
||||
|
Loading…
Reference in New Issue
Block a user