提交 081a1851 编写于 作者: D dlorenc

Update .gitignore and integration test for new build locations.

上级 5f529ecb
......@@ -24,3 +24,4 @@ _testmain.go
*.prof
/out
/.gopath
......@@ -20,13 +20,14 @@ package integration
import (
"flag"
"os"
"os/exec"
"path/filepath"
"strings"
"testing"
)
var binaryPath = flag.String("binary", "../minikube", "path to minikube binary")
var binaryPath = flag.String("binary", "../out/minikube", "path to minikube binary")
func runCommand(t *testing.T, command string, checkError bool) string {
path, _ := filepath.Abs(*binaryPath)
......@@ -34,7 +35,7 @@ func runCommand(t *testing.T, command string, checkError bool) string {
stdout, err := cmd.Output()
if checkError && err != nil {
t.Fatalf("Error running command: %s %s", command, err)
t.Fatalf("Error running command: %s %s. Output: %s", command, err, stdout)
}
return string(stdout)
}
......@@ -68,3 +69,8 @@ func TestStartStop(t *testing.T) {
runCommand(t, "delete", true)
checkStatus("Does Not Exist")
}
func TestMain(m *testing.M) {
flag.Parse()
os.Exit(m.Run())
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册