Commit d137f1ce authored by Benjamin Blanc's avatar Benjamin Blanc

Fix self.test_suite_portal?

parent b38cbd7d
......@@ -329,10 +329,9 @@ branch = %(branch)s
begin = time.time()
portal_url = config['test_suite_master_url']
portal = taskdistribution.TaskDistributionTool(portal_url, logger=DummyLogger(log))
test_suite_portal = taskdistribution.TaskDistributor(portal_url, logger=DummyLogger(log))
self.test_suite_portal = test_suite_portal
test_suite_portal.subscribeNode(config['test_node_title'], config['computer_id'])
test_suite_json = test_suite_portal.startTestSuite(config['test_node_title'])
self.test_suite_portal = taskdistribution.TaskDistributor(portal_url, logger=DummyLogger(log))
self.test_suite_portal.subscribeNode(config['test_node_title'], config['computer_id'])
test_suite_json = self.test_suite_portal.startTestSuite(config['test_node_title'])
test_suite_data = deunicodeData(json.loads(test_suite_json))
log("Got following test suite data from master : %r" % \
(test_suite_data,))
......@@ -342,7 +341,7 @@ branch = %(branch)s
# into nexedi/master-erp5..
# (just UnitTestDistributor should be sufficient)
try:
my_test_type = test_suite_portal.getTestType()
my_test_type = self.test_suite_portal.getTestType()
except:
log("testnode, error during requesting getTestType() method \
from the distributor.")
......
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