quteprocess: also mark expected WARNINGs

This commit is contained in:
Daniel Schadt 2016-07-02 17:19:19 +02:00
parent e2b521a408
commit 4863df5ac8

View File

@ -117,7 +117,7 @@ class LogLine(testprocess.Line):
format_str = log.EXTENDED_FMT format_str = log.EXTENDED_FMT
# Mark expected errors with (Expected) so it's less confusing for tests # Mark expected errors with (Expected) so it's less confusing for tests
# which expect errors but fail due to other errors. # which expect errors but fail due to other errors.
if self.expected and self.loglevel >= log.LOG_LEVELS['ERROR']: if self.expected and self.loglevel > logging.INFO:
new_color = '{' + log.LOG_COLORS['DEBUG'] + '}' new_color = '{' + log.LOG_COLORS['DEBUG'] + '}'
format_str = format_str.replace('{log_color}', new_color) format_str = format_str.replace('{log_color}', new_color)
format_str = re.sub(r'{levelname:(\d*)}', format_str = re.sub(r'{levelname:(\d*)}',