Commit a46f8683 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent d0c61cc7
...@@ -254,17 +254,16 @@ class PyTest: ...@@ -254,17 +254,16 @@ class PyTest:
return int(m.group(1)) return int(m.group(1))
stat = {} stat = {}
def set_stat(stat_key, from_name): def stat_set(stat_key, from_name):
v = get(from_name) v = get(from_name)
if v is None: if v is None:
return return
stat[stat_key] = v stat[stat_key] = v
set_stat('skip_count', 'skipped') stat_set('skip_count', 'skipped')
set_stat('error_count', 'failed') stat_set('error_count', 'failed')
# XXX failure_count <- ? stat_set('failure_count', 'xfailed') # XXX ok?
nxfail = get('xfailed', 0) npass = get('passed', 0)
npass = get('passed', 0) stat['test_count'] = npass + stat.get('failure_count', 0) + stat.get('skip_count', 0) + stat.get('error_count', 0)
stat['test_count'] = npass + nxfail + stat.get('skip_count', 0) + stat.get('error_count', 0)
return stat return stat
def unittest_summary(out): # -> status_dict def unittest_summary(out): # -> status_dict
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment