Update test suite to account for ignored output

If stdin is not a terminal no command output will be received.
This commit is contained in:
Marc André Tanner 2018-03-17 13:17:35 +01:00
parent fd34b98db7
commit 52d5c7d098
1 changed files with 2 additions and 5 deletions

View File

@ -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"