Commit 8ef2ab3d authored by Benjamin Blanc's avatar Benjamin Blanc

erp5_test_result: Allow TestResult_getJsonScalabilityStats to get integer and string.

parent 139448e5
......@@ -65,7 +65,10 @@ for tl in test_result_lines:\n
if stdout:\n
count = count + 1\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
\n
test_suite = context.getPortalObject().test_suite_module.searchFolder(title=context.getTitle())[0]\n
......
274
\ No newline at end of file
275
\ No newline at end of file
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