From b9ceda978bf9beaff19c69f59d1421103c490f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 5 Nov 2016 14:25:35 +0100 Subject: test/sam: improve test output Redirect the vis UI to /dev/null. Let it write to an output file instead of redirecting stdout, keeps the terminal in a sane state. --- sam/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sam') diff --git a/sam/test.sh b/sam/test.sh index 99d48cd..42970b3 100755 --- a/sam/test.sh +++ b/sam/test.sh @@ -54,8 +54,8 @@ for t in $TESTS; do printf "Running test %s with vis ... " "$t" - cat "$IN" | $VIS "+{ $NL $CMD $NL wq! $NL }" - > "$VIS_OUT" - if [ $? -ne 0 ]; then + $VIS "+{ $NL $CMD $NL wq! $VIS_OUT $NL }" "$IN" 2>/dev/null + if [ $? -ne 0 -o ! -e "$VIS_OUT" ]; then printf "ERROR\n" elif cmp -s "$REF" "$VIS_OUT"; then printf "OK\n" -- cgit v1.2.3