소스 검색

e2e: run e2e tests on unsupported architectures

Anthony Romano 9 년 전
부모
커밋
884452c403
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      e2e/main_test.go

+ 2 - 0
e2e/main_test.go

@@ -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)