aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-01-29 14:19:00 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-01-29 16:01:06 +0100
commit0c6a2c332895b02ab904a2f66f6b6feb4c2ee22a (patch)
treee6ad7c624ab9486b93bf834a7da265f24a3e6335
parentb190f060619b8b4be091a69540d0b9de30c1fb5a (diff)
dashboard/app: disable tests on Travis
This is very frustrating. Testing with 'go test' does not really work. All tests fail with: util_test.go:51: Could not find dev_appserver.py: exec: "dev_appserver.py": executable file not found in $PATH And I can't even now find a way to download this dev_appserver.py thing. Update #1461
-rw-r--r--dashboard/app/util_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/dashboard/app/util_test.go b/dashboard/app/util_test.go
index 46dcc1f45..dcae8ace6 100644
--- a/dashboard/app/util_test.go
+++ b/dashboard/app/util_test.go
@@ -12,6 +12,7 @@ import (
"io/ioutil"
"net/http"
"net/http/httptest"
+ "os"
"path/filepath"
"reflect"
"runtime"
@@ -41,6 +42,9 @@ type Ctx struct {
}
func NewCtx(t *testing.T) *Ctx {
+ if os.Getenv("TRAVIS") != "" {
+ t.Skip("skipping test on Travis (no dev_appserver.py)")
+ }
t.Parallel()
inst, err := aetest.NewInstance(&aetest.Options{
// Without this option datastore queries return data with slight delay,