Lines Matching full:sources
33 var random = flag.Bool("random", true, "Assign sources into job batches randomly?")
67 Sources []string member
81 w.Sources = append(w.Sources, gms...)
86 w.Sources = append(w.Sources, tests...)
92 for i, s := range w.Sources {
94 w.Sources = append(w.Sources[:i], w.Sources[i+1:]...)
117 w.Sources = append(w.Sources, gm)
123 w.Sources = append(w.Sources, test)
144 w.Sources = append(w.Sources, path)
205 args = append(args, w.Sources...)
214 if len(w.Sources) == 1 {
218 // If a batch of sources ran and failed, split them up and try again.
219 for _, source := range w.Sources {
226 if !*quiet || (err != nil && len(w.Sources) == 1) {
274 rand.Shuffle(len(w.Sources), func(i, j int) {
275 w.Sources[i], w.Sources[j] = w.Sources[j], w.Sources[i]
280 sourcesPerBatch := (len(w.Sources) + limit - 1) / limit
282 for i := 0; i < len(w.Sources); i += sourcesPerBatch {
284 if end > len(w.Sources) {
285 end = len(w.Sources)
287 batch := w.Sources[i:end]