abduco

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 52d5c7d098f4a1f44d0d79da0f0684f0ac8ace65
parent fd34b98db77accb3a43f220a0639cba8132834c3
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 17 Mar 2018 13:17:35 +0100

Update test suite to account for ignored output

If stdin is not a terminal no command output will be received.

Diffstat:
testsuite.sh | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 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"