Use t1 & t2 as more symbolic than 'a' and 'b' for the two times.

This commit is contained in:
obrien 2010-01-03 12:17:51 +00:00
parent 8ab1021a62
commit 82a9840cd0

View File

@ -29,24 +29,22 @@ check()
A1=$2
A2=$3
if [ -z "${A2}" ]; then A2=${A1}; fi
count=`expr ${count} + 1`
if [ -z "${A2}" ]; then A2=${A1}; fi
R=`date -r ${TEST1} +%${S}`
if [ "${R}" = "${A1}" ]; then
echo "ok ${count} - ${S}(a)"
echo "ok ${S}{t1}"
else
echo "no ok ${count} - ${S}(a) (got ${R}, expected ${A1})"
echo "no ok ${S}{t1} - (got ${R}, expected ${A1})"
fi
count=`expr ${count} + 1`
R=`date -r ${TEST2} +%${S}`
if [ "${R}" = "${A2}" ]; then
echo "ok ${count} - ${S}(b)"
echo "ok ${S}{t2}"
else
echo "no ok ${count} - ${S}(b) (got ${R}, expected ${A2})"
echo "no ok ${S}{t2} - (got ${R}, expected ${A2})"
fi
}