Small change to handling of integers in run-tests.

pull/10/merge
Damien 2013-12-29 22:38:03 +00:00
rodzic 39977a56da
commit 046147dcd5
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -25,19 +25,19 @@ do
echo "pass $infile"
$RM $outfile
$RM $expfile
numpassed=`expr $numpassed + 1`
((numpassed=numpassed + 1))
else
echo "FAIL $infile"
numfailed=`expr $numfailed + 1`
((numfailed=numfailed + 1))
namefailed="$namefailed $basename"
fi
numtests=`expr $numtests + 1`
((numtests=numtests + 1))
done
echo "$numtests tests performed"
echo "$numpassed tests passed"
if [ $numfailed -ne 0 ]
if [[ $numfailed != 0 ]]
then
echo "$numfailed tests failed -$namefailed"
fi