@ -918,20 +918,15 @@ class TestHarness:
dur = result . duration )
dur = result . duration )
if result . res is TestResult . FAIL :
if result . res is TestResult . FAIL :
result_str + = ' ' + returncode_to_status ( result . returncode )
result_str + = ' ' + returncode_to_status ( result . returncode )
if result . res in bad_statuses :
self . collected_failures . append ( result_str )
if not self . options . quiet or result . res not in ok_statuses :
if not self . options . quiet or result . res not in ok_statuses :
if result . res not in ok_statuses :
decorator = mlog . plain
self . collected_failures . append ( result_str )
if result . res in bad_statuses :
if mlog . colorize_console ( ) :
decorator = mlog . red
if result . res in bad_statuses :
elif result . res is TestResult . SKIP :
self . collected_failures . append ( result_str )
decorator = mlog . yellow
decorator = mlog . red
print ( decorator ( result_str ) . get_text ( mlog . colorize_console ( ) ) )
elif result . res is TestResult . SKIP :
decorator = mlog . yellow
else :
sys . exit ( ' Unreachable code was ... well ... reached. ' )
print ( decorator ( result_str ) . get_text ( True ) )
else :
print ( result_str )
result_str + = " \n \n " + result . get_log ( )
result_str + = " \n \n " + result . get_log ( )
if result . res in bad_statuses :
if result . res in bad_statuses :
if self . options . print_errorlogs :
if self . options . print_errorlogs :