Commit 36db7120 authored by Sebastien Robin's avatar Sebastien Robin

add several parameters to runTestSuite :

- test_suite_title
- test_node_title
- project_title
This allows to remove some hack on master to retrieve the project,
and to have more control on parallel instances
parent ce9818b0
...@@ -42,6 +42,12 @@ def safeRpcCall(function, *args): ...@@ -42,6 +42,12 @@ def safeRpcCall(function, *args):
def main(): def main():
parser = argparse.ArgumentParser(description='Run a test suite.') parser = argparse.ArgumentParser(description='Run a test suite.')
parser.add_argument('--test_suite', help='The test suite name') parser.add_argument('--test_suite', help='The test suite name')
parser.add_argument('--test_suite_title', help='The test suite title',
default=None)
parser.add_argument('--test_node_title', help='The test node title',
default=None)
parser.add_argument('--project_title', help='The project title',
default=None)
parser.add_argument('--revision', help='The revision to test', parser.add_argument('--revision', help='The revision to test',
default='dummy_revision') default='dummy_revision')
parser.add_argument('--node_quantity', help='Number of parallel tests to run', parser.add_argument('--node_quantity', help='Number of parallel tests to run',
...@@ -69,6 +75,7 @@ def main(): ...@@ -69,6 +75,7 @@ def main():
assert master.getProtocolRevision() == 1 assert master.getProtocolRevision() == 1
else: else:
master = DummyTaskDistributionTool() master = DummyTaskDistributionTool()
test_suite_title = args.test_suite_title or args.test_suite
revision = args.revision revision = args.revision
if ',' in revision: if ',' in revision:
revision = revision.split(',') revision = revision.split(',')
...@@ -78,7 +85,8 @@ def main(): ...@@ -78,7 +85,8 @@ def main():
db_list=args.db_list) db_list=args.db_list)
test_result = safeRpcCall(master.createTestResult, test_result = safeRpcCall(master.createTestResult,
args.test_suite, revision, suite.getTestList(), args.test_suite, revision, suite.getTestList(),
suite.allow_restart) suite.allow_restart, test_suite_title, args.test_node_title,
args.project_title)
if test_result: if test_result:
test_result_path, test_revision = test_result test_result_path, test_revision = test_result
while suite.acquire(): while suite.acquire():
......
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