Uploading skipped [NOT_SUPPORTED] tests

pull/1579/head
Brian Daniels 2016-02-29 14:25:47 -06:00
parent 01648b2a3b
commit 7b256df1e9
1 changed files with 9 additions and 2 deletions

View File

@ -234,9 +234,13 @@ def add_report(project_run_data, report_file, is_build, build_id, host_os):
project_run_data['names_set'].add(projectRun['project']) project_run_data['names_set'].add(projectRun['project'])
skipped = test_case.findall('skipped') should_skip = False
skips = test_case.findall('skipped')
if not skipped: if skips:
should_skip = skips[0].attrib['message'] == 'SKIP'
if not should_skip:
system_outs = test_case.findall('system-out') system_outs = test_case.findall('system-out')
output = "" output = ""
@ -259,6 +263,9 @@ def add_report(project_run_data, report_file, is_build, build_id, host_os):
elif failures: elif failures:
projectRunPass = False projectRunPass = False
result = failures[0].attrib['message'] result = failures[0].attrib['message']
elif skips:
projectRunPass = True
result = skips[0].attrib['message']
else: else:
projectRunPass = True projectRunPass = True
result = 'OK' result = 'OK'