Mercurial > public > mercurial-scm > hg-stable
diff tests/test-git-export.t @ 16350:4f795f5fbb0b stable
tests: make tests work if directory contains special characters
With this quoting tests will work e.g. in "/tmp/foo bar/mercurial/".
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 03 Apr 2012 19:06:35 +0200 |
parents | db0340f4b507 |
children | 8149ff405c78 |
line wrap: on
line diff
--- a/tests/test-git-export.t Tue Apr 03 16:36:25 2012 +0200 +++ b/tests/test-git-export.t Tue Apr 03 19:06:35 2012 +0200 @@ -96,7 +96,7 @@ Binary diff: - $ cp $TESTDIR/binfile.bin . + $ cp "$TESTDIR/binfile.bin" . $ hg add binfile.bin $ hg diff --git > b.diff $ cat b.diff @@ -125,7 +125,7 @@ $ rm binfile.bin $ hg import -mfoo b.diff applying b.diff - $ cmp binfile.bin $TESTDIR/binfile.bin + $ cmp binfile.bin "$TESTDIR/binfile.bin" Rename binary file: