##// END OF EJS Templates
test-bisect: test handling of invalid commands without relying on sh
Mads Kiilerich -
r10147:27838bd9 stable
parent child Browse files
Show More
@@ -86,8 +86,9 b' hg bisect -g'
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
@@ -304,8 +304,7 b' date: Thu Jan 01 00:00:06 1970 +0'
304 summary: msg 6
304 summary: msg 6
305
305
306 % test invalid command
306 % test invalid command
307 /bin/sh: ./foobar: not found
307 abort: failed to execute exit 127
308 abort: failed to execute ./foobar
309 % test bisecting command
308 % test bisecting command
310 Testing changeset 15:e7fa0811edb0 (31 changesets remaining, ~4 tests)
309 Testing changeset 15:e7fa0811edb0 (31 changesets remaining, ~4 tests)
311 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
310 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now