test-bisect: normalize shell error message
authorMartin Geisler <mg@lazybytes.net>
Wed, 04 Nov 2009 09:34:04 +0100
changeset 9708 a9424b6a1a6d
parent 9707 38deec407f8d
child 9709 5858117a0077
test-bisect: normalize shell error message Different shells on vary in their error messages. Here we're satisfied if the shell mentions './foobar' at all.
tests/test-bisect
--- a/tests/test-bisect	Mon Nov 02 17:06:11 2009 -0500
+++ b/tests/test-bisect	Wed Nov 04 09:34:04 2009 +0100
@@ -87,7 +87,7 @@
 
 echo % test invalid command
 hg bisect -r
-hg bisect --command './foobar' 2>&1 | sed 's/: command/:/'
+hg bisect --command './foobar' 2>&1 | sed 's|\(/bin/sh: \./foobar:\).*|\1 not found|'
 
 echo % test bisecting command
 cat > script.py <<EOF