diff tests/test-subrepo-svn.t @ 12365:22f3353bcc36

tests: cleanup exit code handling in unified tests
author Matt Mackall <mpm@selenic.com>
date Tue, 21 Sep 2010 16:00:02 -0500
parents 4134686b83e1
children c01dc9087d9a
line wrap: on
line diff
--- a/tests/test-subrepo-svn.t	Tue Sep 21 12:41:24 2010 -0500
+++ b/tests/test-subrepo-svn.t	Tue Sep 21 16:00:02 2010 -0500
@@ -10,10 +10,7 @@
 SVN wants all paths to start with a slash. Unfortunately, Windows ones
 don't. Handle that.
 
-  $ expr "$escapedwd" : "\/" > /dev/null
-  $ if [ $? -ne 0 ]; then
-  >     escapedwd="/$escapedwd"
-  > fi
+  $ expr "$escapedwd" : / > /dev/null || escapedwd="/$escapedwd"
   $ escapedwd=`python -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$escapedwd"`
   $ filterpath="s|$escapedwd|/root|"
   $ filteroutofdate='s/ in transaction.*/ is out of date/;s/Out of date: /File /'