Cycles tests: Don't proint braces for empty status

This commit is contained in:
Sergey Sharybin 2017-10-10 19:58:37 +05:00
parent 99eb13d3f7
commit d83bcf7071
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ def print_message(message, type=None, status=''):
status_text = " FAILED "
else:
status_text = status
print("[{}]" . format(status_text), end="")
if status_text:
print("[{}]" . format(status_text), end="")
print(COLORS.ENDC, end="")
print(" {}" . format(message))
sys.stdout.flush()