[PATCH] test-patchbomb.t: clean up progress tests

Augie Fackler durin42 at gmail.com
Sun May 1 03:41:14 CDT 2011


# HG changeset patch
# User Augie Fackler <durin42 at gmail.com>
# Date 1304182929 18000
# Node ID 0ef8b87f2239ce5902a69dd19a3ed8a1f2f96906
# Parent  e83ced8b6464ff8f4c6cd9e4b780ba4b5d6208e0
test-patchbomb.t: clean up progress tests

diff --git a/tests/test-patchbomb.t b/tests/test-patchbomb.t
--- a/tests/test-patchbomb.t
+++ b/tests/test-patchbomb.t
@@ -158,16 +158,30 @@
 
   $ 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
+  > --config progress.delay=0 --config progress.refresh=0 \
+  > --config progress.width=60 2>&1 | \
+  > python $TESTDIR/filtercr.py
   This patch series consists of 2 patches.
   
   
   Write the introductory message for the patch series.
   
-  \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                                                                                \r (esc)
+  
+  writing [                                             ] 0/3
+  writing [                                             ] 0/3
+                                                              
+                                                              
+  writing [==============>                              ] 1/3
+  writing [==============>                              ] 1/3
+                                                              
+                                                              
+  writing [=============================>               ] 2/3
+  writing [=============================>               ] 2/3
+                                                              \r (esc)
   Writing [PATCH 0 of 2] test ...
   Writing [PATCH 1 of 2] a ...
   Writing [PATCH 2 of 2] b ...
+  
 
   $ cd ..
 


More information about the Mercurial-devel mailing list