fs: fix test_all -clean to run just one cleaning thread per remote

This commit is contained in:
Nick Craig-Wood 2017-09-30 11:07:09 +01:00
parent 5177d8c854
commit 657b3a674d

View File

@ -358,9 +358,14 @@ func main() {
// start the tests
results := make(chan *test, 8)
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 _, subdir := range []bool{false, true} {
for _, fastlist := range []bool{false, true} {
for _, subdir := range bools {
for _, fastlist := range bools {
if (!subdir || subdir && remote.SubDir) && (!fastlist || fastlist && remote.FastList) {
go newTest(remote.Name, subdir, fastlist).run(results)
awaiting++