[PATCH 3 of 3] test-progress: disable mocking-time tests on chg
Yuya Nishihara
yuya at tcha.org
Fri Apr 8 11:23:59 EDT 2016
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1458517796 25200
# Sun Mar 20 16:49:56 2016 -0700
# Node ID 758f31c11f8b9d400e7b1e0e7f35d3315fb12186
# Parent 369d151ba12b38708c9e8094c157a56bb52e2d1f
test-progress: disable mocking-time tests on chg
It's hard to make these tests compatible with chg because a mocked time.time()
is recorded and accessed by progbar at random timing. I don't think it's worth
fixing this test as it is considered a unit test of time estimates, so just
ignores on chg.
diff --git a/tests/test-progress.t b/tests/test-progress.t
--- a/tests/test-progress.t
+++ b/tests/test-progress.t
@@ -182,6 +182,8 @@ test immediate progress completion
test delay time estimates
+#if no-chg
+
$ cat > mocktime.py <<EOF
> import os
> import time
@@ -250,6 +252,8 @@ Time estimates should not fail when ther
loop [ <=> ] 3\r (no-eol) (esc)
\r (no-eol) (esc)
+#endif
+
test line trimming by '[progress] width', when progress topic contains
multi-byte characters, of which length of byte sequence and columns in
display are different from each other.
More information about the Mercurial-devel
mailing list