tests: make tests work if directory contains special characters stable
authorThomas Arendsen Hein <thomas@intevation.de>
Tue, 03 Apr 2012 19:06:35 +0200
branchstable
changeset 1061 70b4494ccf1d
parent 1059 1745fd2dd308
child 1062 3c257fefa53d
child 1063 0e3b1a8a243c
tests: make tests work if directory contains special characters With this quoting tests will work e.g. in "/tmp/foo bar/mercurial/". [ original upstream message ]
tests/test-keyword.t
--- a/tests/test-keyword.t	Mon Apr 02 17:02:03 2012 -0500
+++ b/tests/test-keyword.t	Tue Apr 03 19:06:35 2012 +0200
@@ -907,14 +907,14 @@
 
   $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
   $ cat hg.pid >> $DAEMON_PIDS
-  $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/file/tip/a/?style=raw'
+  $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/a/?style=raw'
   200 Script output follows
   
   expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $
   do not process $Id:
   xxx $
   $Xinfo: User Name <user@example.com>: firstline $
-  $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/annotate/tip/a/?style=raw'
+  $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/a/?style=raw'
   200 Script output follows
   
   
@@ -926,7 +926,7 @@
   
   
   
-  $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/rev/tip/?style=raw'
+  $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip/?style=raw'
   200 Script output follows
   
   
@@ -946,7 +946,7 @@
   +xxx $
   +$Xinfo$
   
-  $ $TESTDIR/get-with-headers.py localhost:$HGPORT '/diff/bb948857c743/a?style=raw'
+  $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/bb948857c743/a?style=raw'
   200 Script output follows