Skip to content

Commit dbcb1a1

Browse files
committed
Prefix background output with label
1 parent a7f085a commit dbcb1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/bats/helpers/common.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ run_background() {
3838
(
3939
"$@" 2>&1 &
4040
echo $! >"${TEST_PIDDIR}/${label}.pid"
41-
) | tee "$log_file" &
41+
) | tee "$log_file" | sed "s/^/${label}: /" &
4242
}
4343

4444
bg_output_file() {

0 commit comments

Comments
 (0)