Mercurial > octave-buildbot
comparison master.cfg @ 63:f4ff3fa0e556 default tip
also check for fatal message on stdout stream
* master.cfg (octave_test_observer.outLineReceived):
Also check whether line matches fatalRe.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 23 Apr 2024 11:30:32 -0400 |
parents | 7f3b5857f569 |
children |
comparison
equal
deleted
inserted
replaced
62:7f3b5857f569 | 63:f4ff3fa0e556 |
---|---|
362 fatalRe = re.compile (r"[Ff][Aa][Tt][Aa][Ll]") | 362 fatalRe = re.compile (r"[Ff][Aa][Tt][Aa][Ll]") |
363 | 363 |
364 def outLineReceived (self, line): | 364 def outLineReceived (self, line): |
365 if self.warningPattern.match (line): | 365 if self.warningPattern.match (line): |
366 self.warnings += 1 | 366 self.warnings += 1 |
367 | |
368 mo = self.fatalRe.search (line) | |
369 if mo: | |
370 self.total += 1 | |
371 self.errors += 1 | |
372 self.rc = FAILURE | |
367 | 373 |
368 if not self.summary_found: | 374 if not self.summary_found: |
369 mo = self.summaryRe.search (line) | 375 mo = self.summaryRe.search (line) |
370 if mo: | 376 if mo: |
371 self.summary_found = True | 377 self.summary_found = True |