| OLD | NEW |
| 1 // Copyright 2015 The LUCI Authors. All rights reserved. | 1 // Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package swarming | 5 package swarming |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "fmt" | 8 "fmt" |
| 9 "io/ioutil" | 9 "io/ioutil" |
| 10 "path/filepath" | 10 "path/filepath" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } | 80 } |
| 81 results := []settings.TestBundle{ | 81 results := []settings.TestBundle{ |
| 82 { | 82 { |
| 83 Description: "Basic successful build", | 83 Description: "Basic successful build", |
| 84 Data: templates.Args{"Build": basic}, | 84 Data: templates.Args{"Build": basic}, |
| 85 }, | 85 }, |
| 86 } | 86 } |
| 87 c := context.Background() | 87 c := context.Background() |
| 88 c, _ = testclock.UseTime(c, time.Date(2016, time.March, 14, 11, 0, 0, 0,
time.UTC)) | 88 c, _ = testclock.UseTime(c, time.Date(2016, time.March, 14, 11, 0, 0, 0,
time.UTC)) |
| 89 for _, tc := range getTestCases() { | 89 for _, tc := range getTestCases() { |
| 90 » » build, err := swarmingBuildImpl(c, "foo", "debug", tc) | 90 » » build, prefetch, err := swarmingBuildImpl(c, "foo", "debug", tc) |
| 91 if err != nil { | 91 if err != nil { |
| 92 panic(fmt.Errorf("Error while processing %s: %s", tc, er
r)) | 92 panic(fmt.Errorf("Error while processing %s: %s", tc, er
r)) |
| 93 } | 93 } |
| 94 results = append(results, settings.TestBundle{ | 94 results = append(results, settings.TestBundle{ |
| 95 Description: tc, | 95 Description: tc, |
| 96 » » » Data: templates.Args{"Build": build}, | 96 » » » Data: templates.Args{"Build": build, "Prefetch":
prefetch}, |
| 97 }) | 97 }) |
| 98 } | 98 } |
| 99 return results | 99 return results |
| 100 } | 100 } |
| OLD | NEW |