mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 17:14:44 +01:00
fs: fix test_all -clean to run just one cleaning thread per remote
This commit is contained in:
parent
5177d8c854
commit
657b3a674d
@ -358,9 +358,14 @@ func main() {
|
|||||||
// start the tests
|
// start the tests
|
||||||
results := make(chan *test, 8)
|
results := make(chan *test, 8)
|
||||||
awaiting := 0
|
awaiting := 0
|
||||||
|
bools := []bool{false, true}
|
||||||
|
if *clean {
|
||||||
|
// Don't run -subdir and -fast-list if -clean
|
||||||
|
bools = bools[:1]
|
||||||
|
}
|
||||||
for _, remote := range remotes {
|
for _, remote := range remotes {
|
||||||
for _, subdir := range []bool{false, true} {
|
for _, subdir := range bools {
|
||||||
for _, fastlist := range []bool{false, true} {
|
for _, fastlist := range bools {
|
||||||
if (!subdir || subdir && remote.SubDir) && (!fastlist || fastlist && remote.FastList) {
|
if (!subdir || subdir && remote.SubDir) && (!fastlist || fastlist && remote.FastList) {
|
||||||
go newTest(remote.Name, subdir, fastlist).run(results)
|
go newTest(remote.Name, subdir, fastlist).run(results)
|
||||||
awaiting++
|
awaiting++
|
||||||
|
Loading…
Reference in New Issue
Block a user