e2e: run e2e tests on unsupported architectures

release-3.1
Anthony Romano 2016-07-16 10:30:19 -07:00
parent 331ec82400
commit 884452c403
1 changed files with 2 additions and 0 deletions

View File

@ -6,12 +6,14 @@ package e2e
import (
"os"
"runtime"
"testing"
"github.com/coreos/etcd/pkg/testutil"
)
func TestMain(m *testing.M) {
os.Setenv("ETCD_UNSUPPORTED_ARCH", runtime.GOARCH)
v := m.Run()
if v == 0 && testutil.CheckLeakedGoroutine() {
os.Exit(1)