test: fixed incorrect difference report from test 666 on Linux

v0.27.3
Robin Mills 13 years ago
parent ce14714815
commit 0dc551c918

@ -72,11 +72,11 @@ copyTestFiles()
# result analysis # result analysis
reportTest() reportTest()
{ {
if [ -e `which dos2unix` ]; then cat $results | tr \\ / > ${results}-new
sed 's,\\,/,g' $results > ${results}-new
mv -f ${results}-new $results mv -f ${results}-new $results
unix2dos $results >/dev/null 2>&1 if [ ! -z `which dos2unix` ]; then
fi unix2dos $results >/dev/null 2>&1
fi
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
lhs=$results lhs=$results
@ -93,9 +93,9 @@ reportTest()
fi fi
if [ "$PLATFORM" == "cygwin" ]; then if [ "$PLATFORM" == "cygwin" ]; then
diff -q $diffargs $(cygpath -aw $lhs) $(cygpath -aw $rhs) diff -q $diffargs $(cygpath -aw $lhs) $(cygpath -aw $rhs)
else else
diff -q $diffargs $lhs $rhs diff -q $diffargs $lhs $rhs
fi fi
rc=$? rc=$?
if [ $rc -eq 0 ] ; then if [ $rc -eq 0 ] ; then

Loading…
Cancel
Save