changeset 9692:807633f1e3c2

test-bisect: fix shell-dependent output
author Sune Foldager <cryo@cyanite.org>
date Mon, 02 Nov 2009 10:18:43 +0100
parents f8e1456e1c2c
children c40a1ee20aa5
files tests/test-bisect tests/test-bisect.out
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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