Commit 2c28204b authored by Xiaowu Zhang's avatar Xiaowu Zhang

run-zelenium-test.py.in: count none skip

parent a0383141
...@@ -156,7 +156,7 @@ mode = 755 ...@@ -156,7 +156,7 @@ mode = 755
[template-run-zelenium] [template-run-zelenium]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/template/run-zelenium-test.py.in url = ${:_profile_base_location_}/template/run-zelenium-test.py.in
md5sum = 9bc71d35af39cfb3281ad8384d60d8eb md5sum = 9b707743ac6a0b40f985fa17988a2cd4
output = ${buildout:directory}/run-zelenium-test.py.in output = ${buildout:directory}/run-zelenium-test.py.in
mode = 755 mode = 755
......
...@@ -168,7 +168,7 @@ def main(): ...@@ -168,7 +168,7 @@ def main():
# First td is the main title # First td is the main title
test_name = tr[0][0].text test_name = tr[0][0].text
skip_count = success_count = error_count = 0 unknown_skip = skip_count = success_count = error_count = 0
if len(tr) == 1: if len(tr) == 1:
# Test was not executed # Test was not executed
tr_count = 1 tr_count = 1
...@@ -183,6 +183,7 @@ def main(): ...@@ -183,6 +183,7 @@ def main():
# print etree.tostring(tr).split('\n')[0] # print etree.tostring(tr).split('\n')[0]
status = tr.attrib.get('class') status = tr.attrib.get('class')
if status is None: if status is None:
unknown_skip += 1
continue continue
if 'status_done' in status: if 'status_done' in status:
skip_count += 1 skip_count += 1
...@@ -194,7 +195,7 @@ def main(): ...@@ -194,7 +195,7 @@ def main():
test_line_dict[test_name] = { test_line_dict[test_name] = {
'test_count': tr_count, 'test_count': tr_count,
'error_count': error_count, 'error_count': error_count,
'failure_count': tr_count - (skip_count + success_count + error_count), 'failure_count': tr_count - (skip_count + success_count + error_count + unknown_skip),
'skip_count': skip_count, 'skip_count': skip_count,
'duration': test_execution_duration, 'duration': test_execution_duration,
'command': url, 'command': url,
......
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