changeset 12845:685d884fd2b6 stable

test-patchbomb: add test for progress support (1ed2dc9d4368)
author Yuya Nishihara <yuya@tcha.org>
date Mon, 25 Oct 2010 01:11:52 +0900
parents a1b49b9a0328
children 4b334f8c941b
files tests/test-patchbomb.t
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-patchbomb.t	Sun Oct 24 15:11:41 2010 +0100
+++ b/tests/test-patchbomb.t	Mon Oct 25 01:11:52 2010 +0900
@@ -145,8 +145,10 @@
   +b
   
 
-  $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip
-  This patch series consists of 2 patches.
+  $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \
+  > --config extensions.progress= --config progress.assume-tty=1 \
+  > --config progress.delay=0 --config progress.refresh=0
+  \rwriting [                                                                 ] 0/3\rwriting [                                                                 ] 0/3\r                                                                                \r\r                                                                                \r\rwriting [====================>                                            ] 1/3\rwriting [====================>                                            ] 1/3\r                                                                                \r\r                                                                                \r\rwriting [==========================================>                      ] 2/3\rwriting [==========================================>                      ] 2/3\r                                                                                \rThis patch series consists of 2 patches.
   
   
   Write the introductory message for the patch series.