steps/observer: Mention which log contains an error/warning

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2019-06-25 15:10:26 +01:00
parent 0bb3b30fbe
commit 20f4bbc93f

View File

@ -33,10 +33,10 @@ class RunConfigLogObserver(ShellCommand):
stream, line = yield stream, line = yield
if line.startswith("WARNING:"): if line.startswith("WARNING:"):
self.warnings += 1 self.warnings += 1
self.warningLines.append(line) self.warningLines.append(stream + ": " + line)
if line.startswith("ERROR:"): if line.startswith("ERROR:"):
self.errors += 1 self.errors += 1
self.errorLines.append(line) self.errorLines.append(stream + ": " + line)
def commandComplete(self, cmd): def commandComplete(self, cmd):
self.addCompleteLog('warnings', '\n'.join(self.warningLines)) self.addCompleteLog('warnings', '\n'.join(self.warningLines))