Improve output when a test fails.

Approved by:	rwatson (mentor)
This commit is contained in:
Edward Tomasz Napierala 2008-11-07 14:45:42 +00:00
parent f8dcc5a8f7
commit 74019bf2bc

View File

@ -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`
}