test script fixes

This commit is contained in:
Arvid Norberg
2013-06-23 01:34:19 +00:00
parent 78da577e2b
commit d065ed3106
3 changed files with 15 additions and 6 deletions

View File

@@ -44,6 +44,8 @@ def style_output(o):
ret = ''
subtle = False
for l in o.split('\n'):
l = l.replace('<', '&lt;')
l = l.replace('>', '&gt;')
if 'TEST_CHECK' in l or 'TEST_EQUAL_ERROR' in l or l.startswith('EXIT STATUS: ') or \
l.endswith(' second time limit exceeded'):
ret += '<span class="test-error">%s</span>\n' % l