From 4ee2a5df3980f0b547d5ed29bfde5f7e89d7614a Mon Sep 17 00:00:00 2001 From: Kerem Kat Date: Fri, 11 Oct 2024 14:50:27 +0100 Subject: [PATCH] Log test args and inputs. (#1021) --- test/one/profiler/test/Runner.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/one/profiler/test/Runner.java b/test/one/profiler/test/Runner.java index 12c0c66a1..2d2249b7e 100644 --- a/test/one/profiler/test/Runner.java +++ b/test/one/profiler/test/Runner.java @@ -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)) {