@@ -281,20 +281,23 @@ func buildFlags(env build.Environment, staticLinking bool, buildTags []string) (
281281
282282func doTest (cmdline []string ) {
283283 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" )
292293 )
293294 flag .CommandLine .Parse (cmdline )
294295
295296 // 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+ }
298301
299302 // Configure the toolchain.
300303 tc := build.GoToolchain {GOARCH : * arch , CC : * cc }
0 commit comments