mirror of
https://github.com/rclone/rclone.git
synced 2024-12-25 00:19:13 +01:00
fs: integration tests: add 30 minute timeout per test
This commit is contained in:
parent
6d3df6f172
commit
1c6cad2252
@ -135,6 +135,7 @@ var (
|
|||||||
runTests = flag.String("remotes", "", "Comma separated list of remotes to test, eg 'TestSwift:,TestS3'")
|
runTests = flag.String("remotes", "", "Comma separated list of remotes to test, eg 'TestSwift:,TestS3'")
|
||||||
clean = flag.Bool("clean", false, "Instead of testing, clean all left over test directories")
|
clean = flag.Bool("clean", false, "Instead of testing, clean all left over test directories")
|
||||||
runOnly = flag.String("run-only", "", "Run only those tests matching the regexp supplied")
|
runOnly = flag.String("run-only", "", "Run only those tests matching the regexp supplied")
|
||||||
|
timeout = flag.Duration("timeout", 30*time.Minute, "Maximum time to run each test for before giving up")
|
||||||
)
|
)
|
||||||
|
|
||||||
// test holds info about a running test
|
// test holds info about a running test
|
||||||
@ -155,7 +156,7 @@ func newTest(remote string, subdir bool, fastlist bool) *test {
|
|||||||
t := &test{
|
t := &test{
|
||||||
remote: remote,
|
remote: remote,
|
||||||
subdir: subdir,
|
subdir: subdir,
|
||||||
cmdLine: []string{"./" + binary, "-remote", remote},
|
cmdLine: []string{"./" + binary, "-test.timeout", (*timeout).String(), "-remote", remote},
|
||||||
try: 1,
|
try: 1,
|
||||||
}
|
}
|
||||||
if *fstest.Verbose {
|
if *fstest.Verbose {
|
||||||
|
Loading…
Reference in New Issue
Block a user