From 51c2005ea281f3464fdfcdc000011a09d04506c5 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Fri, 19 Sep 2014 16:22:37 -0700 Subject: Tweak interactive debug output --- tests/interactive.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/interactive.fish') diff --git a/tests/interactive.fish b/tests/interactive.fish index b550dc9e..7596d4ba 100644 --- a/tests/interactive.fish +++ b/tests/interactive.fish @@ -32,9 +32,11 @@ for i in *.expect diff -u $i.tmp.err $i.err end - if test $tmp_status != (cat $i.status) + set -l exp_status (cat $i.status)[1] + if test $tmp_status != $exp_status set res fail echo "Exit status differs for file $i." + echo "Expected $exp_status, got $tmp_status." end if test $res = ok -- cgit v1.2.3