e2e/main_test.go

v1.43.0
gitbay/e2e/main_test.go history · blame · raw

19 lines · 249 bytes

 1package e2e
 2
 3import (
 4	"fmt"
 5	"os"
 6	"testing"
 7)
 8
 9func TestMain(m *testing.M) {
10	dir, cleanup, err := makeBinDir()
11	if err != nil {
12		fmt.Fprintf(os.Stderr, "e2e: %v\n", err)
13		os.Exit(1)
14	}
15	binDir = dir
16	code := m.Run()
17	cleanup()
18	os.Exit(code)
19}