More cleanup.

This commit is contained in:
Robin Mills
2020-05-25 14:19:16 +01:00
parent 4eeb5e2c21
commit e11900847e
8 changed files with 10 additions and 53 deletions
+2 -12
View File
@@ -85,10 +85,7 @@ copyTestFiles()
reportTest()
{
cat $results | tr '\\' '/' > ${results}-new
mv -f ${results}-new $results
if [ ! -z `which dos2unix` ]; then
dos2unix $results >/dev/null 2>&1
fi
mv -f ${results}-new $results
if [ $# -eq 0 ]; then
lhs=$results
@@ -104,17 +101,10 @@ reportTest()
fi
fi
if [ "$PLATFORM" == "cygwin" ]; then
diff $diffargs $(cygpath -aw $lhs) $(cygpath -aw $rhs)
else
diff $diffargs $lhs $rhs
fi
diff $diffargs $lhs $rhs
rc=$?
if [ $rc -eq 0 ] ; then
echo "all testcases passed."
else
diff $diffargs $lhs $rhs
exit 3
fi
}