Skip to content

Commit fc6ffa0

Browse files
author
Ish Shah
committed
link structs to parent result, push before update/reboot to test
1 parent b7b09e0 commit fc6ffa0

File tree

1 file changed

+2
-3
lines changed
  • internal/cmd/operator-sdk/scorecard

1 file changed

+2
-3
lines changed

internal/cmd/operator-sdk/scorecard/cmd.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ func (c *scorecardCmd) printOutput(output v1alpha3.TestList) error {
121121
func (c *scorecardCmd) convertXunit(output v1alpha3.TestList) xunit.TestSuites {
122122
var resultSuite xunit.TestSuites
123123
resultSuite.Name = "scorecard"
124-
resultSuite.Tests = ""
125-
resultSuite.Failures = ""
126-
resultSuite.Errors = ""
127124

128125
jsonTestItems := output.Items
129126
for _, item := range jsonTestItems {
@@ -144,6 +141,8 @@ func (c *scorecardCmd) convertXunit(output v1alpha3.TestList) xunit.TestSuites {
144141
tSuite.URL = item.Spec.Image
145142
//TODO: Add TestStuite ID when API updates version
146143
//tSuite.ID = item.Spec.UniqueID
144+
tSuite.TestCases = append(tSuite.TestCases, tCase)
145+
resultSuite.TestSuite = append(resultSuite.TestSuite, tSuite)
147146
}
148147
}
149148

0 commit comments

Comments
 (0)