@@ -281,20 +281,23 @@ func buildFlags(env build.Environment, staticLinking bool, buildTags []string) (
281
281
282
282
func doTest (cmdline []string ) {
283
283
var (
284
- dlgo = flag .Bool ("dlgo" , false , "Download Go and build with it" )
285
- arch = flag .String ("arch" , "" , "Run tests for given architecture" )
286
- cc = flag .String ("cc" , "" , "Sets C compiler binary" )
287
- coverage = flag .Bool ("coverage" , false , "Whether to record code coverage" )
288
- verbose = flag .Bool ("v" , false , "Whether to log verbosely" )
289
- race = flag .Bool ("race" , false , "Execute the race detector" )
290
- short = flag .Bool ("short" , false , "Pass the 'short'-flag to go test" )
291
- cachedir = flag .String ("cachedir" , "./build/cache" , "directory for caching downloads" )
284
+ dlgo = flag .Bool ("dlgo" , false , "Download Go and build with it" )
285
+ arch = flag .String ("arch" , "" , "Run tests for given architecture" )
286
+ cc = flag .String ("cc" , "" , "Sets C compiler binary" )
287
+ coverage = flag .Bool ("coverage" , false , "Whether to record code coverage" )
288
+ verbose = flag .Bool ("v" , false , "Whether to log verbosely" )
289
+ race = flag .Bool ("race" , false , "Execute the race detector" )
290
+ short = flag .Bool ("short" , false , "Pass the 'short'-flag to go test" )
291
+ cachedir = flag .String ("cachedir" , "./build/cache" , "directory for caching downloads" )
292
+ skipspectests = flag .Bool ("skip-spectests" , false , "Skip downloading execution-spec-tests fixtures" )
292
293
)
293
294
flag .CommandLine .Parse (cmdline )
294
295
295
296
// Get test fixtures.
296
- csdb := download .MustLoadChecksums ("build/checksums.txt" )
297
- downloadSpecTestFixtures (csdb , * cachedir )
297
+ if ! * skipspectests {
298
+ csdb := download .MustLoadChecksums ("build/checksums.txt" )
299
+ downloadSpecTestFixtures (csdb , * cachedir )
300
+ }
298
301
299
302
// Configure the toolchain.
300
303
tc := build.GoToolchain {GOARCH : * arch , CC : * cc }
0 commit comments