test-bisect: fix shell-dependent output
authorSune Foldager <cryo@cyanite.org>
Mon, 02 Nov 2009 10:18:43 +0100
changeset 9692 807633f1e3c2
parent 9691 f8e1456e1c2c
child 9693 c40a1ee20aa5
test-bisect: fix shell-dependent output
tests/test-bisect
tests/test-bisect.out
--- a/tests/test-bisect	Mon Nov 02 10:17:20 2009 +0100
+++ b/tests/test-bisect	Mon Nov 02 10:18:43 2009 +0100
@@ -87,7 +87,7 @@
 
 echo % test invalid command
 hg bisect -r
-hg bisect --command 'foobar'
+hg bisect --command './foobar' 2>&1 | sed 's/: command/:/'
 
 echo % test bisecting command
 cat > script.py <<EOF
--- a/tests/test-bisect.out	Mon Nov 02 10:17:20 2009 +0100
+++ b/tests/test-bisect.out	Mon Nov 02 10:18:43 2009 +0100
@@ -304,8 +304,8 @@
 summary:     msg 6
 
 % test invalid command
-/bin/sh: foobar: command not found
-abort: failed to execute foobar
+/bin/sh: ./foobar: not found
+abort: failed to execute ./foobar
 % test bisecting command
 Testing changeset 15:e7fa0811edb0 (31 changesets remaining, ~4 tests)
 1 files updated, 0 files merged, 0 files removed, 0 files unresolved