parser/gotest: Fix failing build error test

This commit is contained in:
Joël Stemmer 2019-10-08 23:33:41 +01:00
parent cb7f773314
commit 1069a04b9f

View File

@ -188,11 +188,11 @@ var tests = []struct {
}},
{"13-syntax-error",
[]gtr.Event{
{Type: "output", Data: "# package/name/failing1"},
{Type: "build_output", Name: "package/name/failing1"},
{Type: "output", Data: "failing1/failing_test.go:15: undefined: x"},
{Type: "output", Data: "# package/name/failing2"},
{Type: "build_output", Name: "package/name/failing2"},
{Type: "output", Data: "failing2/another_failing_test.go:20: undefined: y"},
{Type: "output", Data: "# package/name/setupfailing1"},
{Type: "build_output", Name: "package/name/setupfailing1"},
{Type: "output", Data: "setupfailing1/failing_test.go:4: cannot find package \"other/package\" in any of:"},
{Type: "output", Data: " /path/vendor (vendor tree)"},
{Type: "output", Data: " /path/go/root (from $GOROOT)"},
@ -530,11 +530,11 @@ var tests = []struct {
}},
{"31-syntax-error-test-binary",
[]gtr.Event{
{Type: "output", Data: "# package/name/failing1 [package/name/failing1.test]"},
{Type: "build_output", Name: "package/name/failing1"},
{Type: "output", Data: "failing1/failing_test.go:15: undefined: x"},
{Type: "output", Data: "# package/name/failing2 [package/name/failing2.test]"},
{Type: "build_output", Name: "package/name/failing2"},
{Type: "output", Data: "failing2/another_failing_test.go:20: undefined: y"},
{Type: "output", Data: "# package/name/setupfailing1 [package/name/setupfailing1.test]"},
{Type: "build_output", Name: "package/name/setupfailing1"},
{Type: "output", Data: "setupfailing1/failing_test.go:4: cannot find package \"other/package\" in any of:"},
{Type: "output", Data: "\t/path/vendor (vendor tree)"},
{Type: "output", Data: "\t/path/go/root (from $GOROOT)"},