comparison tests/test-bisect @ 10147:27838bd9acf5 stable

test-bisect: test handling of invalid commands without relying on sh
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 29 Dec 2009 01:03:10 +0100
parents a9424b6a1a6d
children c52057614c72
comparison
equal deleted inserted replaced
10137:daec0f64656e 10147:27838bd9acf5
84 hg bisect -g 84 hg bisect -g
85 85
86 set +e 86 set +e
87 87
88 echo % test invalid command 88 echo % test invalid command
89 # assuming that the shell returns 127 if command not found ...
89 hg bisect -r 90 hg bisect -r
90 hg bisect --command './foobar' 2>&1 | sed 's|\(/bin/sh: \./foobar:\).*|\1 not found|' 91 hg bisect --command 'exit 127'
91 92
92 echo % test bisecting command 93 echo % test bisecting command
93 cat > script.py <<EOF 94 cat > script.py <<EOF
94 #!/usr/bin/env python 95 #!/usr/bin/env python
95 import sys 96 import sys