ensure tests fail when parsing test output fails (#1914)

This commit is contained in:
Egon Elbre 2019-05-08 16:36:41 +03:00 committed by GitHub
parent 89c5e70003
commit 964b4af53e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,8 +41,10 @@ func main() {
} else { } else {
fmt.Fprintf(os.Stderr, "tparse error: %v\n\n", err) fmt.Fprintf(os.Stderr, "tparse error: %v\n\n", err)
} }
defer os.Exit(1)
} else {
defer os.Exit(pkgs.ExitCode())
} }
defer os.Exit(pkgs.ExitCode())
output, err := os.Create(*xunit) output, err := os.Create(*xunit)
if err != nil { if err != nil {