minor fix for windows quirk

This commit is contained in:
Josh Coalson 2006-10-03 01:03:12 +00:00
parent a65fd93119
commit 8f6bdf2fd8
1 changed files with 11 additions and 1 deletions

View File

@ -48,6 +48,12 @@ run_test_cuesheet ()
fi
}
if [ `env | grep -ic '^comspec='` != 0 ] ; then
is_win=yes
else
is_win=no
fi
########################################################################
#
# test_cuesheet
@ -95,6 +101,10 @@ for cuesheet in $good_cuesheets ; do
rm -f $cuesheet_pass1 $cuesheet_pass2
done
diff cuesheet.ok $log > cuesheet.diff || die "Error: .log file does not match .ok file, see cuesheet.diff"
if [ $is_win = yes ] ; then
diff -w cuesheet.ok $log > cuesheet.diff || die "Error: .log file does not match .ok file, see cuesheet.diff"
else
diff cuesheet.ok $log > cuesheet.diff || die "Error: .log file does not match .ok file, see cuesheet.diff"
fi
echo "PASSED (results are in $log)"