Skip to content

Commit

Permalink
Log test args and inputs. (async-profiler#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
krk authored Oct 11, 2024
1 parent 445bafb commit 4ee2a5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/one/profiler/test/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ private static boolean run(Method m) {
continue;
}

log.log(Level.INFO, "Running " + testName + "...");
log.log(Level.INFO, "Running " + testName +
(!test.args().isEmpty() ? " args: " + test.args() : "") +
(test.inputs().length > 0 ? " inputs: [" + String.join(" ", test.inputs()) + "]" : "") +
"...");

String testLogDir = logDir.isEmpty() ? null : logDir + '/' + testName;
try (TestProcess p = new TestProcess(test, currentOs, testLogDir)) {
Expand Down

0 comments on commit 4ee2a5d

Please sign in to comment.