diff --git a/Test/script/regression.py b/Test/script/regression.py index eeabc34f72..0b9bf11dfe 100644 --- a/Test/script/regression.py +++ b/Test/script/regression.py @@ -1253,13 +1253,14 @@ def printout(string): def generate_html(): # If the file doesn't exist yet, this is the first case to run for # this test, so we need to make the start of the html log + global imgfail if not file_exists(case.html_log): write_html_head() try: global html html = open(case.html_log, "a") # The image title - title = ""case.image_name"\ + title = "" + case.image_name + "\

" + case.image_name + " \ tested on " + socket.gethostname() + "

\

\ @@ -1270,9 +1271,13 @@ def generate_html():

" # The script errors found + if imgfail: + clr = '#0000FF' + else: + clr = '#282828' errors = "
\

Errors and Warnings

\ -
" +
" # For each error we have logged in the case for error in case.printerror: # Replace < and > to avoid any html display errors @@ -1285,7 +1290,7 @@ def generate_html(): # Links to the logs logs = "
\

Logs

\ -
" +
" logs_path = Emailer.make_local_path(case.output_dir, case.image_name, "logs") for file in os.listdir(logs_path): logs += "

" + file + "

" @@ -1294,7 +1299,7 @@ def generate_html(): # All the testing information info = "
\

Information

\ -
\ +
\ " # The individual elements info += ""
Image Path: