# HG changeset patch # User Mads Kiilerich # Date 2009-12-29 00:03:10 # Node ID 27838bd9acf58a206522202f66b522654e74efc1 # Parent daec0f64656ead272cf6f6e2d8598b24f1c0fa02 test-bisect: test handling of invalid commands without relying on sh diff --git a/tests/test-bisect b/tests/test-bisect --- a/tests/test-bisect +++ b/tests/test-bisect @@ -86,8 +86,9 @@ hg bisect -g set +e echo % test invalid command +# assuming that the shell returns 127 if command not found ... hg bisect -r -hg bisect --command './foobar' 2>&1 | sed 's|\(/bin/sh: \./foobar:\).*|\1 not found|' +hg bisect --command 'exit 127' echo % test bisecting command cat > script.py <