tests/test-logtoprocess.t
changeset 40377 18da306e92b5
parent 39926 c4a3d3c67c4f
child 40401 6bd477ee7294
equal deleted inserted replaced
40376:801c8ca60af5 40377:18da306e92b5
    45 Running a command triggers both a ui.log('command') and a
    45 Running a command triggers both a ui.log('command') and a
    46 ui.log('commandfinish') call. The foo command also uses ui.log.
    46 ui.log('commandfinish') call. The foo command also uses ui.log.
    47 
    47 
    48 Use sort to avoid ordering issues between the various processes we spawn:
    48 Use sort to avoid ordering issues between the various processes we spawn:
    49   $ hg foo
    49   $ hg foo
    50   $ sleep 0.2
    50   $ sleep 1
    51   $ cat $TESTTMP/command.log | sort
    51   $ cat $TESTTMP/command.log | sort
    52   
    52   
    53   command
    53   command
    54   foo
    54   foo
    55   foo
    55   foo
    82   > [ui]
    82   > [ui]
    83   > logblockedtimes=True
    83   > logblockedtimes=True
    84   > EOF
    84   > EOF
    85 
    85 
    86   $ hg log
    86   $ hg log
    87   $ sleep 0.2
    87   $ sleep 1
    88   $ cat $TESTTMP/uiblocked.log
    88   $ cat $TESTTMP/uiblocked.log
    89   uiblocked stdio [0-9]+.[0-9]* ms command [0-9]+.[0-9]* ms (re)
    89   uiblocked stdio [0-9]+.[0-9]* ms command [0-9]+.[0-9]* ms (re)
    90 
    90 
    91 Try to confirm that pager wait on logtoprocess:
    91 Try to confirm that pager wait on logtoprocess:
    92 
    92