test-subrepo-svn: restore expr functionality for solaris
authorMads Kiilerich <mads@kiilerich.com>
Sat, 25 Sep 2010 02:35:35 +0200
changeset 12404 f33a5d1c937e
parent 12403 ba8850911703
child 12405 1f6abbd38783
test-subrepo-svn: restore expr functionality for solaris Cleanup in 22f3353bcc36 removed a syntactically incorrect and apparently unnecessary escape of / for expr - but solaris needs it.
tests/test-subrepo-svn.t
--- a/tests/test-subrepo-svn.t	Sat Sep 25 02:35:32 2010 +0200
+++ b/tests/test-subrepo-svn.t	Sat Sep 25 02:35:35 2010 +0200
@@ -9,7 +9,7 @@
 don't. Handle that.
 
   $ escapedwd=`pwd | fix_path`
-  $ expr "$escapedwd" : / > /dev/null || escapedwd="/$escapedwd"
+  $ expr "$escapedwd" : '\/' > /dev/null || escapedwd="/$escapedwd"
   $ escapedwd=`python -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$escapedwd"`
 
 create subversion repo