Fixed fsck tests on Windows - must use native_path

Also note the single quotes to deal with Windows backslash paths
This commit is contained in:
Steve Streeting 2015-10-21 17:07:22 +01:00
parent 680199d2ce
commit 58332fcc52

@ -38,8 +38,9 @@ begin_test "fsck default"
echo "CORRUPTION" >> .git/lfs/objects/$aOid12/$aOid34/$aOid
expected="Object a.dat ($aOid) is corrupt
moved to $TRASHDIR/$reponame/.git/lfs/bad/$aOid"
moved=$(native_path "$TRASHDIR/$reponame/.git/lfs/bad/$aOid")
expected="$(printf 'Object a.dat (%s) is corrupt
moved to %s' "$aOid" "$moved")"
[ "$expected" = "$(git lfs fsck)" ]
if [ -e .git/lfs/objects/$aOid12/$aOid34/$aOid ]; then