Commit 40958dea authored by Arnaud Fontaine's avatar Arnaud Fontaine

Handle range of users for the ERP5 benchmark title.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45974 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f7b9ce1c
......@@ -355,9 +355,13 @@ class ERP5BenchmarkResult(BenchmarkResult):
verbose=True,
allow_none=True)
# TODO: range of users?
if isinstance(nb_users, tuple):
nb_users_str = '%d to %d' % nb_users
else:
nb_users_str = '%d' % nb_users
benchmark_result = test_result_module.TestResultModule_addBenchmarkResult(
'%d repeat with %d concurrent users' % (repeat, nb_users),
'%d repeat with %s concurrent users' % (repeat, nb_users_str),
publish_project, ' '.join(sys.argv), datetime.datetime.now())
return benchmark_result['id']
......
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