1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:04:44 -07: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) {
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 {
case "android":
t.Skipf("skipping test on %q (no testdata dir)", runtime.GOOS)