Skip to content

Commit

Permalink
Fix bold formatting in test suite runner's output
Browse files Browse the repository at this point in the history
  • Loading branch information
LZaw authored Sep 12, 2020
1 parent c674bed commit abb612f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/runtestsuite/runtestsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,20 +160,20 @@ def pass_rendering(self, rendering_time):
def fail_rendering(self, rendering_time, message):
self.__print_result(format_duration(rendering_time), message, colorama.Fore.RED)

def __print_scene(self, scene, color=colorama.Fore.RESET):
def __print_scene(self, scene, color=colorama.Fore.RESET + colorama.Style.NORMAL):
scene = remove_prefix(scene, "./")
scene = remove_prefix(scene, ".\\")
if len(scene) > self.SCENE_COLUMN_WIDTH:
scene = scene[:self.SCENE_COLUMN_WIDTH - 3] + "..."
print("| {0}{1}{2} | ".format(color,
scene.ljust(self.SCENE_COLUMN_WIDTH),
colorama.Fore.RESET), end='')
colorama.Fore.RESET + colorama.Style.NORMAL), end='')

def __print_result(self, time, message, color=colorama.Fore.RESET):
def __print_result(self, time, message, color=colorama.Fore.RESET + colorama.Style.NORMAL):
print("{0} | {1}{2}{3} |".format(time.rjust(self.TIME_COLUMN_WIDTH),
color,
message.rjust(self.RESULT_COLUMN_WIDTH),
colorama.Fore.RESET))
colorama.Fore.RESET + colorama.Style.NORMAL))


# --------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit abb612f

Please sign in to comment.