diff --git a/cmd/go2junit/go2junit.go b/cmd/go2junit/go2junit.go index d803de4..d2c3092 100644 --- a/cmd/go2junit/go2junit.go +++ b/cmd/go2junit/go2junit.go @@ -70,7 +70,8 @@ func main() { filename := os.Args[1] var file *os.File if filename != "-" { - file, err := os.Open(filename) + file2, err := os.Open(filename) + file = file2 if err != nil { panic(err) } diff --git a/cmd/go2junit/output.go b/cmd/go2junit/output.go index 7b140c8..5f27ecd 100644 --- a/cmd/go2junit/output.go +++ b/cmd/go2junit/output.go @@ -8,7 +8,7 @@ import ( ) type Testsuites struct { - XMLName xml.Name `xml:"testsuites"` + XMLName xml.Name `xml:"testsuite"` Tests int `xml:"tests,attr"` Failures int `xml:"failures,attr"`