Print out message when integration test fails
@@ -69,9 +69,9 @@ func TestIntegrationScripts(t *testing.T) {
// Compile Go
goSrc := Start([]string{file})
ioutil.WriteFile("build/main.go", []byte(goSrc), os.ModePerm)
- err = exec.Command("go", "build", "-o", goPath, "build/main.go").Run()
+ out, err := exec.Command("go", "build", "-o", goPath, "build/main.go").CombinedOutput()
if err != nil {
- t.Fatal(err)
+ t.Fatalf("ERROR: %s\n%s", err, out)
}
// Run Go program
