From a9d228c85448735f5b3ee91b3c1eda4b75ebb8e0 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Tue, 10 Nov 2026 18:13:50 -0500 Subject: [PATCH] test: preserve tick processor flags on retry test-tick-processor-preprocess-flag expects JSON from --prof-process --preprocess. If its first profile does not match, the retry drops --preprocess and gets a text report. No later report can match the opening brace, so the test keeps retrying. Pass the original flags on each attempt. Assisted-by: Codex Signed-off-by: Tamir Duberstein --- test/tick-processor/tick-processor-base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tick-processor/tick-processor-base.js b/test/tick-processor/tick-processor-base.js index a9fd93949509..765f6098646c 100644 --- a/test/tick-processor/tick-processor-base.js +++ b/test/tick-processor/tick-processor-base.js @@ -50,7 +50,7 @@ function match(pattern, parent, ticks, flags = []) { // Retry after timeout if (!pattern.test(out)) - return setTimeout(() => match(pattern, parent, ticks), RETRY_TIMEOUT); + return setTimeout(() => match(pattern, parent, ticks, flags), RETRY_TIMEOUT); parent.stdout.removeAllListeners(); parent.kill();