Ticket #146: addLogObserver_examples.diff

File addLogObserver_examples.diff, 846 bytes (added by sergey, 4 years ago)

Documentation patch for addLogObserver.

  • docs/buildbot.texinfo

    diff -rN -u old-trunk/docs/buildbot.texinfo new-trunk/docs/buildbot.texinfo
    old new  
    49594959        # this counter will feed Progress along the 'test cases' metric 
    49604960        counter = TrialTestCaseCounter() 
    49614961        self.addLogObserver('stdio', counter) 
     4962        self.progressMetrics += ('tests',) 
    49624963@end example 
    49634964 
    49644965This creates a TrialTestCaseCounter and tells the step that the 
     
    50125013    def __init__(self, **kwargs): 
    50135014        ShellCommand.__init__(self, **kwargs)   # always upcall! 
    50145015        counter = FNURRRGHCounter()) 
    5015         self.addLogObserver(counter) 
     5016        self.addLogObserver('stdio', counter) 
     5017        self.progressMetrics += ('tests',) 
    50165018# FINISH 
    50175019@end example 
    50185020