Mercurial > hg
comparison tests/test-progress.t @ 18670:ddc7268da176
blackbox: log the commands that are run
Uses ui.log to log which commands are run, their exit code, the time taken,
and any unhandled exceptions thrown.
Example log lines:
2013/02/09 08:35:19 durham> add foo
2013/02/09 08:35:19 durham> add exited 0 after 0.02 seconds
Updates the progress tests because they use a mocked time.time() which these
changes affect.
author | Durham Goode <durham@fb.com> |
---|---|
date | Sat, 09 Feb 2013 09:04:14 -0800 |
parents | 6047947afb6b |
children | 41e39a0299cb |
comparison
equal
deleted
inserted
replaced
18669:18242716a014 | 18670:ddc7268da176 |
---|---|
165 $ echo "delay=25" >> $HGRCPATH | 165 $ echo "delay=25" >> $HGRCPATH |
166 $ echo "width=60" >> $HGRCPATH | 166 $ echo "width=60" >> $HGRCPATH |
167 | 167 |
168 $ hg -y loop 8 | 168 $ hg -y loop 8 |
169 \r (no-eol) (esc) | 169 \r (no-eol) (esc) |
170 loop [====> ] 1/8 1m18s\r (no-eol) (esc) | |
170 loop [=========> ] 2/8 1m07s\r (no-eol) (esc) | 171 loop [=========> ] 2/8 1m07s\r (no-eol) (esc) |
171 loop [===============> ] 3/8 56s\r (no-eol) (esc) | 172 loop [===============> ] 3/8 56s\r (no-eol) (esc) |
172 loop [=====================> ] 4/8 45s\r (no-eol) (esc) | 173 loop [=====================> ] 4/8 45s\r (no-eol) (esc) |
173 loop [==========================> ] 5/8 34s\r (no-eol) (esc) | 174 loop [==========================> ] 5/8 34s\r (no-eol) (esc) |
174 loop [================================> ] 6/8 23s\r (no-eol) (esc) | 175 loop [================================> ] 6/8 23s\r (no-eol) (esc) |
201 \r (no-eol) (esc) | 202 \r (no-eol) (esc) |
202 | 203 |
203 Time estimates should not fail when there's no end point: | 204 Time estimates should not fail when there's no end point: |
204 $ hg -y loop -- -4 | 205 $ hg -y loop -- -4 |
205 \r (no-eol) (esc) | 206 \r (no-eol) (esc) |
206 loop [ <=> ] 2\r (no-eol) (esc) | 207 loop [ <=> ] 1\r (no-eol) (esc) |
207 loop [ <=> ] 3\r (no-eol) (esc) | 208 loop [ <=> ] 2\r (no-eol) (esc) |
208 \r (no-eol) (esc) | 209 loop [ <=> ] 3\r (no-eol) (esc) |
210 \r (no-eol) (esc) |