@@ -149,7 +149,7 @@ func CreateFromReport(report gtr.Report, hostname string) Testsuites {
149
149
}
150
150
151
151
if len (pkg .Output ) > 0 {
152
- suite .SystemOut = & Output {Data : formatOutput (pkg .Output , 0 )}
152
+ suite .SystemOut = & Output {Data : formatOutput (pkg .Output )}
153
153
}
154
154
155
155
if pkg .Coverage > 0 {
@@ -210,20 +210,20 @@ func createTestcaseForTest(pkgName string, test gtr.Test) Testcase {
210
210
if test .Result == gtr .Fail {
211
211
tc .Failure = & Result {
212
212
Message : "Failed" ,
213
- Data : formatOutput (test .Output , test . Level ),
213
+ Data : formatOutput (test .Output ),
214
214
}
215
215
} else if test .Result == gtr .Skip {
216
216
tc .Skipped = & Result {
217
217
Message : "Skipped" ,
218
- Data : formatOutput (test .Output , test . Level ),
218
+ Data : formatOutput (test .Output ),
219
219
}
220
220
} else if test .Result == gtr .Unknown {
221
221
tc .Error = & Result {
222
222
Message : "No test result found" ,
223
- Data : formatOutput (test .Output , test . Level ),
223
+ Data : formatOutput (test .Output ),
224
224
}
225
225
} else if len (test .Output ) > 0 {
226
- tc .SystemOut = & Output {Data : formatOutput (test .Output , test . Level )}
226
+ tc .SystemOut = & Output {Data : formatOutput (test .Output )}
227
227
}
228
228
return tc
229
229
}
@@ -235,6 +235,6 @@ func formatDuration(d time.Duration) string {
235
235
}
236
236
237
237
// formatOutput combines the lines from the given output into a single string.
238
- func formatOutput (output []string , indent int ) string {
238
+ func formatOutput (output []string ) string {
239
239
return strings .Join (output , "\n " )
240
240
}
0 commit comments