log failures

This commit is contained in:
Love Hornquist Astrand
2010-03-21 09:37:42 -07:00
parent 32d148b2f8
commit 3ac7d626c2

View File

@@ -54,14 +54,16 @@ for a in unix fortuna egd ;do
${rand} --method=${a} --file=crypto-test 2>error
res=$?
if test "X$res" != X0 ; then
grep "random not ready yet" error || exit 1
grep "random not ready yet" error || \
{ echo "random ready failing" ; cat error; exit 1; }
echo "random method $a out for lunch"
continue
fi
${rand} --method=${a} --file=crypto-test2 2>error
res=$?
if test "X$res" != X0 ; then
grep "random not ready yet" error || exit 1
grep "random not ready yet" error || \
{ echo "random ready failing" ; cat error; exit 1; }
echo "random metod $a out for dinner"
continue
fi