]> diplodocus.org Git - nmh/commitdiff
Suppressed display of info message when test-eom-align isn't
authorDavid Levine <levinedl@acm.org>
Fri, 1 Feb 2013 23:20:37 +0000 (17:20 -0600)
committerDavid Levine <levinedl@acm.org>
Fri, 1 Feb 2013 23:20:37 +0000 (17:20 -0600)
run with stdout to a terminal.

test/inc/test-eom-align

index 5acdc0e..aa470c3 100755 (executable)
@@ -126,7 +126,7 @@ do_one_test_B () {
 # buffer size or to body size equal to buffer size.
 arith_eval $STDIO_BUFSZ - 16; START=$arith_val
 arith_eval $STDIO_BUFSZ + $HDRSZ + $FROMLINESZ + 32; FINISH=$arith_val
-echo \
+[ -t 1 ]  &&  echo \
 "Testing inc of files with various alignments of eom marker with buffer size..."
 i="$START"
 while test $i -le $FINISH; do