From 52d5c7d098f4a1f44d0d79da0f0684f0ac8ace65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 17 Mar 2018 13:17:35 +0100 Subject: [PATCH] Update test suite to account for ignored output If stdin is not a terminal no command output will be received. --- testsuite.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/testsuite.sh b/testsuite.sh index 47e7a43..ccb86fa 100755 --- a/testsuite.sh +++ b/testsuite.sh @@ -148,11 +148,8 @@ run_test_dvtm() { local output="$name.out" local output_expected="$name.expected" - echo exit | dvtm >/dev/null 2>&1 - expected_abduco_epilog "$name" $? > "$output_expected" - local len=`wc -c "$output_expected" | awk '{ print $1 }'` - len=$((len+1)) - if dvtm_session | $ABDUCO -c "$name" 2>&1 | tail -c $len | sed 's/.$//' > "$output" && + : > "$output_expected" + if dvtm_session | $ABDUCO -c "$name" > "$output" 2>&1 && diff -u "$output_expected" "$output" && check_environment; then rm "$output" "$output_expected" echo "OK"