Mercurial > public > mercurial-scm > hg-stable
diff tests/test-contrib.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 | 9910f60a37ee |
children | 8aeb2f1ae94c |
line wrap: on
line diff
--- a/tests/test-contrib.t Tue Apr 03 16:36:25 2012 +0200 +++ b/tests/test-contrib.t Tue Apr 03 19:06:35 2012 +0200 @@ -1,6 +1,6 @@ Set vars: - $ CONTRIBDIR=$TESTDIR/../contrib + $ CONTRIBDIR="$TESTDIR/../contrib" Prepare repo-a: @@ -26,7 +26,7 @@ Dumping revlog of file a to stdout: - $ python $CONTRIBDIR/dumprevlog .hg/store/data/a.i + $ python "$CONTRIBDIR/dumprevlog" .hg/store/data/a.i file: .hg/store/data/a.i node: 183d2312b35066fb6b3b449b84efc370d50993d0 linkrev: 0 @@ -58,14 +58,14 @@ Dump all revlogs to file repo.dump: - $ find .hg/store -name "*.i" | sort | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump + $ find .hg/store -name "*.i" | sort | xargs python "$CONTRIBDIR/dumprevlog" > ../repo.dump $ cd .. Undumping into repo-b: $ hg init repo-b $ cd repo-b - $ python $CONTRIBDIR/undumprevlog < ../repo.dump + $ python "$CONTRIBDIR/undumprevlog" < ../repo.dump .hg/store/00changelog.i .hg/store/00manifest.i .hg/store/data/a.i @@ -106,7 +106,7 @@ Test shrink-revlog: $ cd repo-a - $ hg --config extensions.shrink=$CONTRIBDIR/shrink-revlog.py shrink + $ hg --config extensions.shrink="$CONTRIBDIR/shrink-revlog.py" shrink shrinking $TESTTMP/repo-a/.hg/store/00manifest.i (glob) reading revs sorting revs