Commit 51f1540f authored by Benjamin Blanc's avatar Benjamin Blanc

util: testnode: runScalabilityTestSuite add runner path option

parent 0f1796da
...@@ -88,6 +88,10 @@ class ScalabilityLauncher(object): ...@@ -88,6 +88,10 @@ class ScalabilityLauncher(object):
parser.add_argument('--log-path', parser.add_argument('--log-path',
metavar='LOG_PATH', metavar='LOG_PATH',
help='Log Path') help='Log Path')
parser.add_argument('--runner-path',
metavar='Runner_PATH',
help='runner Path')
@staticmethod @staticmethod
def _checkParsedArguments(namespace): def _checkParsedArguments(namespace):
...@@ -129,6 +133,7 @@ class ScalabilityLauncher(object): ...@@ -129,6 +133,7 @@ class ScalabilityLauncher(object):
test_suites = 'createPerson createWebPage' test_suites = 'createPerson createWebPage'
benchmark_path_list = '/opt/slapgrid/0d079fd393801181806cf894bf39aca6/parts/erp5/erp5/util/benchmark/examples' benchmark_path_list = '/opt/slapgrid/0d079fd393801181806cf894bf39aca6/parts/erp5/erp5/util/benchmark/examples'
user_file_path = '/opt/slapgrid/0d079fd393801181806cf894bf39aca6/parts/erp5/erp5/util/benchmark/examples' user_file_path = '/opt/slapgrid/0d079fd393801181806cf894bf39aca6/parts/erp5/erp5/util/benchmark/examples'
tester_path = self.__argumentNamespace.runner_path
while time.time()-start_time < max_time: while time.time()-start_time < max_time:
current_test = self.getNextTest() current_test = self.getNextTest()
...@@ -140,7 +145,7 @@ class ScalabilityLauncher(object): ...@@ -140,7 +145,7 @@ class ScalabilityLauncher(object):
self.log("Test Case %s is running..." %(current_test.title)) self.log("Test Case %s is running..." %(current_test.title))
# Call the performance_tester_erp5 # Call the performance_tester_erp5
try: try:
call(["performance_tester_erp5", call([tester_path,
self.__argumentNamespace.erp5_url, self.__argumentNamespace.erp5_url,
'1', '1',
test_suites, test_suites,
......
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