40a41,43
> # get the termcap from the environment
> termcap = env['TERMCAP']
>
174c177,196
< print '***** ' + contents(source[0])
---
> # print the status with colours to make it easier to see what
> # passed and what failed
> line = contents(source[0])
>
> # split the line to words and get the last one
> words = line.split()
> status = words[-1]
>
> # if the test failed make it red, if it passed make it green, and
> # skip the punctuation
> if status == "FAILED!":
> status = termcap.Red + status[:-1] + termcap.Normal + status[-1]
> elif status == "passed.":
> status = termcap.Green + status[:-1] + termcap.Normal + status[-1]
>
> # put it back in the list and join with space
> words[-1] = status
> line = " ".join(words)
>
> print '***** ' + line