From 36563f55fb70fa2565b0a57af5694b210c4259f3 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Wed, 20 Nov 2024 23:42:06 +0100 Subject: [PATCH] avoid duplicate testsuites for everyt line of output --- cmd/go2junit/output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/go2junit/output.go b/cmd/go2junit/output.go index 6c6ec02..ce0c17e 100644 --- a/cmd/go2junit/output.go +++ b/cmd/go2junit/output.go @@ -78,7 +78,7 @@ func (testsuites *Testsuites) getSuite(t time.Time, pkg string) *Testsuite { func (suite *Testsuite) getSuite(t time.Time, name string) *Testsuite { for _, s := range suite.Testsuites { - if s.Name == name { + if s.Name == suite.Name+"/"+name { return s } }