[Bf-blender-cvs] [d83bcf70710] master: Cycles tests: Don't proint braces for empty status

Sergey Sharybin noreply at git.blender.org
Wed Oct 11 09:54:11 CEST 2017


Commit: d83bcf707109faee3bf6c991f875c3295be34df3
Author: Sergey Sharybin
Date:   Tue Oct 10 19:58:37 2017 +0500
Branches: master
https://developer.blender.org/rBd83bcf707109faee3bf6c991f875c3295be34df3

Cycles tests: Don't proint braces for empty status

===================================================================

M	tests/python/cycles_render_tests.py

===================================================================

diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py
index 2122150467c..731996df8ef 100755
--- a/tests/python/cycles_render_tests.py
+++ b/tests/python/cycles_render_tests.py
@@ -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()



More information about the Bf-blender-cvs mailing list