e2e: skip e2e tests during normal go test runs

This commit is contained in:
Nick Ethier 2018-07-25 23:36:33 -04:00
parent 3b5e41d56e
commit 72d15da314
No known key found for this signature in database
GPG Key ID: 07C1A3ECED90D24A
1 changed files with 6 additions and 1 deletions

View File

@ -1,11 +1,16 @@
package e2e
import (
"os"
"testing"
"github.com/hashicorp/nomad/e2e/framework"
)
func RunE2ETests(t *testing.T) {
framework.Run(t)
if os.Getenv("NOMAD_E2E") == "" {
t.Skip("Skipping e2e tests, NOMAD_E2E not set")
} else {
framework.Run(t)
}
}