changeset 18508:813b7a1f7036 stable

tests: use `pwd` instead of ${PWD} in test-convert-git.t - because of Solaris
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 31 Jan 2013 02:39:55 +0100
parents c795c9f87792
children 21daee53c101
files contrib/check-code.py tests/test-convert-git.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Wed Jan 30 10:57:28 2013 -0500
+++ b/contrib/check-code.py	Thu Jan 31 02:39:55 2013 +0100
@@ -78,7 +78,7 @@
   [
     (r'^function', "don't use 'function', use old style"),
     (r'^diff.*-\w*N', "don't use 'diff -N'"),
-    (r'\$PWD', "don't use $PWD, use `pwd`"),
+    (r'\$PWD|\${PWD}', "don't use $PWD, use `pwd`"),
     (r'^([^"\'\n]|("[^"\n]*")|(\'[^\'\n]*\'))*\^', "^ must be quoted"),
   ]
 ]
--- a/tests/test-convert-git.t	Wed Jan 30 10:57:28 2013 -0500
+++ b/tests/test-convert-git.t	Thu Jan 31 02:39:55 2013 +0100
@@ -307,7 +307,7 @@
   $ echo 'sub' >> foo
   $ git add foo
   $ commit -a -m 'addfoo'
-  $ BASE=${PWD}
+  $ BASE=`pwd`
   $ cd ..
   $ mkdir git-repo6
   $ cd git-repo6