From c99f0c120a7dc816bb1c2b869739ee3d59c66c11 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 6 Oct 2013 20:13:15 +0000 Subject: [PATCH] display exit code in test detail page --- tools/parse_test_results.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/parse_test_results.py b/tools/parse_test_results.py index 7b715a792..b5d8ed24b 100755 --- a/tools/parse_test_results.py +++ b/tools/parse_test_results.py @@ -266,11 +266,19 @@ for branch_name in revs: print >>details_file, '' % f for t in platforms[p][toolset][f]: details = platforms[p][toolset][f][t] - if details['status'] == 0: c = 'passed' + exitcode = details['status'] + if exitcode == 0: c = 'passed' else: c = 'failed' + error_state = '%d' % exitcode + if exitcode == 222: + error_state = 'valgrind error' + elif exitcode == 139: + error_state = 'crash' + elif exitcode == -1073740777: + error_state = 'timeout' log_name = os.path.join('logs-%s-%d' % (branch_name, r), p + '~' + toolset + '~' + t + '~' + f.replace(' ', '.') + '.html') print >>html, '' % (t, f, c, log_name) - print >>details_file, '' % (c, os.path.split(log_name)[1], t) + print >>details_file, '' % (c, os.path.split(log_name)[1], t, error_state) save_log_file(log_name, project_name, branch_name, '%s - %s' % (t, f), int(details['timestamp']), details['output']) print >>details_file, '
%s
%s
%s [%s]
'