changeset 28881:d9f7f590f1e3

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.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 20 Mar 2016 16:49:56 -0700
parents f74eed3115fd
children 800ec7c048b0
files tests/test-progress.t
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-progress.t	Sun Mar 20 14:55:56 2016 -0700
+++ b/tests/test-progress.t	Sun Mar 20 16:49:56 2016 -0700
@@ -182,6 +182,8 @@
 
 test delay time estimates
 
+#if no-chg
+
   $ cat > mocktime.py <<EOF
   > import os
   > import time
@@ -250,6 +252,8 @@
   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.