##// END OF EJS Templates
test-bisect: test --command option
Patrick Mezard -
r8803:2b35ced8 default
parent child Browse files
Show More
@@ -83,6 +83,24 b' hg bisect -s'
83 hg bisect -s
83 hg bisect -s
84 hg bisect -g
84 hg bisect -g
85
85
86 set +e
87
86 echo % test invalid command
88 echo % test invalid command
87 hg bisect -r
89 hg bisect -r
88 hg bisect --command 'foobar'
90 hg bisect --command 'foobar'
91
92 echo % test bisecting command
93 cat > script.py <<EOF
94 #!/usr/bin/env python
95 import sys
96 from mercurial import ui, hg
97 repo = hg.repository(ui.ui(), '.')
98 if repo['.'].rev() < 6:
99 sys.exit(1)
100 EOF
101 chmod +x script.py
102 hg bisect -r
103 hg bisect --good tip
104 hg bisect --bad 0
105 hg bisect --command "`pwd`/script.py"
106 true
@@ -305,3 +305,12 b' summary: msg 6'
305
305
306 % test invalid command
306 % test invalid command
307 abort: cannot find executable: foobar
307 abort: cannot find executable: foobar
308 % test bisecting command
309 Testing changeset 15:e7fa0811edb0 (31 changesets remaining, ~4 tests)
310 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
311 The first good revision is:
312 changeset: 6:a3d5c6fdf0d3
313 user: test
314 date: Thu Jan 01 00:00:06 1970 +0000
315 summary: msg 6
316
General Comments 0
You need to be logged in to leave comments. Login now