e2e: skip e2e tests during normal go test runs
This commit is contained in:
parent
3b5e41d56e
commit
72d15da314
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue