Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Aurélien Vermylen
erp5
Commits
8ef2ab3d
Commit
8ef2ab3d
authored
Sep 10, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_test_result: Allow TestResult_getJsonScalabilityStats to get integer and string.
parent
139448e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/TestResult_getJsonScalabilityStats.xml
...s/erp5_test_result/TestResult_getJsonScalabilityStats.xml
+4
-1
bt5/erp5_test_result/bt/revision
bt5/erp5_test_result/bt/revision
+1
-1
No files found.
bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/TestResult_getJsonScalabilityStats.xml
View file @
8ef2ab3d
...
@@ -65,7 +65,10 @@ for tl in test_result_lines:\n
...
@@ -65,7 +65,10 @@ for tl in test_result_lines:\n
if stdout:\n
if stdout:\n
count = count + 1\n
count = count + 1\n
stdout_lines = filter(None, stdout.split(\'\\n\'))\n
stdout_lines = filter(None, stdout.split(\'\\n\'))\n
current_stats = dict( [(l.split("=")[0].replace(" ", "_"), int(l.split("=")[1])) for l in stdout_lines ])\n
current_stats = dict( [(l.split("=")[0].replace(" ", "_"), \\\n
l.split("=")[1].isdigit() and int(l.split("=")[1]) or str(l.split("=")[1])) \\\n
for l in stdout_lines ])\n
\n
tests.append(current_stats)\n
tests.append(current_stats)\n
\n
\n
test_suite = context.getPortalObject().test_suite_module.searchFolder(title=context.getTitle())[0]\n
test_suite = context.getPortalObject().test_suite_module.searchFolder(title=context.getTitle())[0]\n
...
...
bt5/erp5_test_result/bt/revision
View file @
8ef2ab3d
274
275
\ No newline at end of file
\ No newline at end of file
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