From 0f2d357476f1c3809a7641bd58d9b9691f6483f5 Mon Sep 17 00:00:00 2001 From: DTB Date: Sat, 3 Aug 2024 07:33:46 -0600 Subject: [PATCH] tests/bonsai: dj.mk: tee diagnostics to stderr instead of tty --- tests/bonsai/dj.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/bonsai/dj.mk b/tests/bonsai/dj.mk index 402abd6..bf8adf3 100755 --- a/tests/bonsai/dj.mk +++ b/tests/bonsai/dj.mk @@ -20,7 +20,7 @@ dj_full: $(BIN)/dj /dev/full case "$$(uname)" in \ Linux) \ $(BIN)/dj -Hi /dev/zero -o /dev/full 2>&1 \ - | tee /dev/tty \ + | tee /dev/stderr \ | xargs -I out test '1+0 > 0+0; 1024 > 0' = out \ ;; \ esac @@ -33,7 +33,7 @@ dj_help: $(BIN)/dj # Read nothing from /dev/null, write nothing to /dev/null. dj_null: $(BIN)/dj /dev/null $(BIN)/dj -Hi /dev/null -o /dev/null 2>&1 \ - | tee /dev/tty \ + | tee /dev/stderr \ | xargs -I out test '0+0 > 0+0; 0 > 0' = out # This test currently fails. This is probably due to dj(1) being stale relative @@ -44,5 +44,5 @@ dj_null: $(BIN)/dj /dev/null # # Pipe 1024B of '\0' into dj(1); skip the first 24B; expect 1000B written. # dd count=1 bs=1024 /dev/null \ # | $(BIN)/dj -H -s 24 -o /dev/null 2>&1 \ -# | tee /dev/tty \ +# | tee /dev/stderr \ # | xargs -I out test '1+0 > 1+0; 1024 > 1000' = out