diff tests/test-check-pyflakes.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 695ac6aca77f
children 0cb996ee8c6d
line wrap: on
line diff
--- a/tests/test-check-pyflakes.t	Tue Apr 03 16:36:25 2012 +0200
+++ b/tests/test-check-pyflakes.t	Tue Apr 03 19:06:35 2012 +0200
@@ -1,6 +1,6 @@
   $ "$TESTDIR/hghave" pyflakes || exit 80
-  $ cd `dirname $TESTDIR`
-  $ pyflakes mercurial hgext 2>&1 | $TESTDIR/filterpyflakes.py
+  $ cd "`dirname "$TESTDIR"`"
+  $ pyflakes mercurial hgext 2>&1 | "$TESTDIR/filterpyflakes.py"
   hgext/inotify/linux/__init__.py:*: 'from _inotify import *' used; unable to detect undefined names (glob)