diff tests/test-grep.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 1ef46bcd76f8
children 6ef3107c661e
line wrap: on
line diff
--- a/tests/test-grep.t	Tue Apr 03 16:36:25 2012 +0200
+++ b/tests/test-grep.t	Tue Apr 03 19:06:35 2012 +0200
@@ -165,7 +165,7 @@
 
   $ hg init a
   $ cd a
-  $ cp $TESTDIR/binfile.bin .
+  $ cp "$TESTDIR/binfile.bin" .
   $ hg add binfile.bin
   $ hg ci -m 'add binfile.bin'
   $ hg grep "MaCam" --all