@@ -729,18 +729,12 @@ for section in $HOST_OPTIONS_SECTIONS; do
n_notrun=`expr $n_notrun + 1`
tc_status="notrun"
else
- if [ $sts -ne 0 ]
- then
- err_msg="[failed, exit status $sts]"
- echo -n " $err_msg"
- err=true
- fi
if [ ! -f $seq.out ]
then
_dump_err "no qualified output"
err=true
else
-
+ testtime=`expr $stop - $start`
# coreutils 8.16+ changed quote formats in error messages from
# `foo' to 'foo'. Filter old versions to match the new version.
sed -i "s/\`/\'/g" $tmp.out
@@ -750,12 +744,19 @@ for section in $HOST_OPTIONS_SECTIONS; do
then
:
else
- echo "$seqnum `expr $stop - $start`" >>$tmp.time
- echo -n " `expr $stop - $start`s"
+ if [ $sts -ne 0 ]
+ then
+ err_msg="[failed, exit status $sts]"
+ echo -n " ${testtime}s $err_msg"
+ err=true
+ else
+ echo "$seqnum $testtime" >>$tmp.time
+ echo -n " ${testtime}s"
+ fi
fi
echo ""
else
- echo " `expr $stop - $start`s - output mismatch (see $seqres.out.bad)"
+ echo " ${testtime}s - output mismatch (see $seqres.out.bad)"
mv $tmp.out $seqres.out.bad
$diff $seq.out $seqres.out.bad | {
if test "$DIFF_LENGTH" -le 0; then