tests/test-chg.t
changeset 33949 0d0cec9602c3
parent 33097 fce4ed2912bb
child 34309 b94db1780365
equal deleted inserted replaced
33948:4f86c9647d23 33949:0d0cec9602c3
   113   >     ui.write('going to crash\n')
   113   >     ui.write('going to crash\n')
   114   >     raise Exception('.')
   114   >     raise Exception('.')
   115   > EOF
   115   > EOF
   116 
   116 
   117   $ cat > $TESTTMP/fakepager.py <<EOF
   117   $ cat > $TESTTMP/fakepager.py <<EOF
   118   > import sys, time
   118   > from __future__ import absolute_import
       
   119   > import sys
       
   120   > import time
   119   > for line in iter(sys.stdin.readline, ''):
   121   > for line in iter(sys.stdin.readline, ''):
   120   >     if 'crash' in line: # only interested in lines containing 'crash'
   122   >     if 'crash' in line: # only interested in lines containing 'crash'
   121   >         # if chg exits when pager is sleeping (incorrectly), the output
   123   >         # if chg exits when pager is sleeping (incorrectly), the output
   122   >         # will be captured by the next test case
   124   >         # will be captured by the next test case
   123   >         time.sleep(1)
   125   >         time.sleep(1)