From 14f7467a24ed5dfe12b7d60f82141e4af5510a0a Mon Sep 17 00:00:00 2001 From: Valentin Maerten Date: Sun, 19 Jul 2026 22:50:27 +0200 Subject: [PATCH] test: fix flaky TestDeps by using group output --- executor_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/executor_test.go b/executor_test.go index 60172b8765..51fb1fce9d 100644 --- a/executor_test.go +++ b/executor_test.go @@ -517,6 +517,12 @@ func TestDeps(t *testing.T) { WithExecutorOptions( task.WithDir("testdata/deps"), task.WithSilent(true), + // Deps run in parallel and, with the default interleaved output, + // their sub-line writes (echo writes the content and the newline + // separately) can interleave into a garbled buffer. Group output + // flushes each command atomically, keeping every line intact. The + // set of lines asserted (via PPSortedLines) is unchanged. + task.WithOutputStyle(ast.Output{Name: "group"}), ), WithPostProcessFn(PPSortedLines), )