Improve output when a test fails.
Approved by: rwatson (mentor)
This commit is contained in:
parent
f8dcc5a8f7
commit
74019bf2bc
@ -27,7 +27,7 @@ expect()
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "ok ${ntest}"
|
||||
else
|
||||
echo "not ok ${ntest}"
|
||||
echo "not ok ${ntest} - tried '$*', expected ${e}, got ${r}"
|
||||
fi
|
||||
ntest=`expr $ntest + 1`
|
||||
}
|
||||
@ -43,7 +43,7 @@ jexpect()
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "ok ${ntest}"
|
||||
else
|
||||
echo "not ok ${ntest}"
|
||||
echo "not ok ${ntest} - tried '$*', expected ${e}, got ${r}"
|
||||
fi
|
||||
ntest=`expr $ntest + 1`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user