1
0
mirror of https://github.com/golang/go synced 2024-09-30 22:38:33 -06:00

cmd/guru: skip the slow tests in short mode

Change-Id: I85c2de03087ae8bb8989763f255b362eeee5b397
Reviewed-on: https://go-review.googlesource.com/109556
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
This commit is contained in:
Brad Fitzpatrick 2018-04-26 18:12:02 +00:00
parent ae8027637c
commit 8772326260

View File

@ -210,6 +210,11 @@ func doQuery(out io.Writer, q *query, json bool) {
} }
func TestGuru(t *testing.T) { func TestGuru(t *testing.T) {
if testing.Short() {
// These tests are super slow.
// TODO: make a lighter version of the tests for short mode?
t.Skipf("skipping in short mode")
}
switch runtime.GOOS { switch runtime.GOOS {
case "android": case "android":
t.Skipf("skipping test on %q (no testdata dir)", runtime.GOOS) t.Skipf("skipping test on %q (no testdata dir)", runtime.GOOS)