test-progress: disable mocking-time tests on chg
authorYuya Nishihara <yuya@tcha.org>
Sun, 20 Mar 2016 16:49:56 -0700
changeset 28881 d9f7f590f1e3
parent 28880 f74eed3115fd
child 28882 800ec7c048b0
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.
tests/test-progress.t
--- 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.