Skip to content

Commit 2fc2e51

Browse files
authored
fix(rpcfuzz): hide summary when export is specified (#627)
1 parent f8b5055 commit 2fc2e51

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

cmd/rpcfuzz/rpcfuzz.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -281,17 +281,15 @@ func runRpcFuzz(ctx context.Context) error {
281281
testResults.GenerateTabularResult()
282282
if *testExportJson {
283283
testResults.ExportResultToJSON(filepath.Join(*testOutputExportPath, "output.json"))
284-
}
285-
if *testExportCSV {
284+
} else if *testExportCSV {
286285
testResults.ExportResultToCSV(filepath.Join(*testOutputExportPath, "output.csv"))
287-
}
288-
if *testExportMarkdown {
286+
} else if *testExportMarkdown {
289287
testResults.ExportResultToMarkdown(filepath.Join(*testOutputExportPath, "output.md"))
290-
}
291-
if *testExportHTML {
288+
} else if *testExportHTML {
292289
testResults.ExportResultToHTML(filepath.Join(*testOutputExportPath, "output.html"))
290+
} else {
291+
testResults.PrintTabularResult()
293292
}
294-
testResults.PrintTabularResult()
295293

296294
return nil
297295
}

0 commit comments

Comments
 (0)