[erp5.util] testnode: Don't json.loads() data that has already been parsed.

parent 0159e6fc
...@@ -331,10 +331,13 @@ branch = %(branch)s ...@@ -331,10 +331,13 @@ branch = %(branch)s
logger=DummyLogger(log)) logger=DummyLogger(log))
self.test_suite_portal.subscribeNode(node_title=config['test_node_title'], self.test_suite_portal.subscribeNode(node_title=config['test_node_title'],
computer_guid=config['computer_id']) computer_guid=config['computer_id'])
test_suite_json = self.test_suite_portal.startTestSuite( test_suite_data = self.test_suite_portal.startTestSuite(
node_title=config['test_node_title'], node_title=config['test_node_title'],
computer_guid=config['computer_id']) computer_guid=config['computer_id'])
test_suite_data = Utils.deunicodeData(json.loads(test_suite_json)) if type(test_suite_data) == str:
# Backward compatiblity
test_suite_data = json.loads(test_suite_data)
test_suite_data = Utils.deunicodeData(test_suite_data)
log("Got following test suite data from master : %r" % \ log("Got following test suite data from master : %r" % \
(test_suite_data,)) (test_suite_data,))
try: try:
......
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