Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vincent Bechu
slapos
Commits
2c28204b
Commit
2c28204b
authored
Jan 18, 2017
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run-zelenium-test.py.in: count none skip
parent
a0383141
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+1
-1
stack/erp5/template/run-zelenium-test.py.in
stack/erp5/template/run-zelenium-test.py.in
+3
-2
No files found.
stack/erp5/buildout.cfg
View file @
2c28204b
...
...
@@ -156,7 +156,7 @@ mode = 755
[template-run-zelenium]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/template/run-zelenium-test.py.in
md5sum = 9b
c71d35af39cfb3281ad8384d60d8eb
md5sum = 9b
707743ac6a0b40f985fa17988a2cd4
output = ${buildout:directory}/run-zelenium-test.py.in
mode = 755
...
...
stack/erp5/template/run-zelenium-test.py.in
View file @
2c28204b
...
...
@@ -168,7 +168,7 @@ def main():
# First td is the main title
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:
# Test was not executed
tr_count = 1
...
...
@@ -183,6 +183,7 @@ def main():
# print etree.tostring(tr).split('\n')[0]
status = tr.attrib.get('class')
if status is None:
unknown_skip += 1
continue
if 'status_done' in status:
skip_count += 1
...
...
@@ -194,7 +195,7 @@ def main():
test_line_dict[test_name] = {
'test_count': tr_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,
'duration': test_execution_duration,
'command': url,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment