[PATCH] tests: disable progress estimate in test-debugbuilddag.t

Julien Cristau julien.cristau at logilab.fr
Wed Apr 4 11:08:17 CDT 2012


# HG changeset patch
# User Julien Cristau <julien.cristau at logilab.fr>
# Date 1333540511 -7200
# Branch stable
# Node ID 848df9c08fc48663ce9b1da3487e6b97aa4c9564
# Parent  4d875bb546dc03db33630f5388d7e04939c386a0
tests: disable progress estimate in test-debugbuilddag.t

If the command takes long enough, including 'estimate' in the format
will add some more data to the progress bar output, and make the test
fail.  See e.g.
https://buildd.debian.org/status/fetch.php?pkg=mercurial&arch=kfreebsd-amd64&ver=2.1.2-2&stamp=1333493711

diff --git a/tests/test-debugbuilddag.t b/tests/test-debugbuilddag.t
--- a/tests/test-debugbuilddag.t
+++ b/tests/test-debugbuilddag.t
@@ -5,10 +5,11 @@ plain
 
   $ hg init
   $ hg debugbuilddag '+2:f +3:p2 @temp <f+4 @default /p2 +2' \
   > --config extensions.progress= --config progress.assume-tty=1 \
   > --config progress.delay=0 --config progress.refresh=0 \
+  > --config progress.format=topic,bar,number \
   > --config progress.width=60 2>&1 | \
   > python "$TESTDIR/filtercr.py"
   
   building [                                          ]  0/12
   building [                                          ]  0/12


More information about the Mercurial-devel mailing list