Commit 60637f98 authored by Benjamin Blanc's avatar Benjamin Blanc

testnode: Change testnodeUtils.py to Utils.py

parent 26ffef69
...@@ -13,7 +13,7 @@ import logging.handlers ...@@ -13,7 +13,7 @@ import logging.handlers
from erp5.util.benchmark.argument import ArgumentType from erp5.util.benchmark.argument import ArgumentType
from erp5.util.benchmark.performance_tester import PerformanceTester from erp5.util.benchmark.performance_tester import PerformanceTester
from erp5.util import taskdistribution from erp5.util import taskdistribution
from erp5.util.testnode import testnodeUtils from erp5.util.testnode import Utils
from subprocess import call from subprocess import call
...@@ -120,7 +120,7 @@ class ScalabilityLauncher(object): ...@@ -120,7 +120,7 @@ class ScalabilityLauncher(object):
data = self.test_result.getNextTestCase() data = self.test_result.getNextTestCase()
if data == None : if data == None :
return None return None
decoded_data = testnodeUtils.deunicodeData(json.loads( decoded_data = Utils.deunicodeData(json.loads(
data data
)) ))
next_test = ScalabilityTest(decoded_data, self.test_result) next_test = ScalabilityTest(decoded_data, self.test_result)
......
...@@ -37,7 +37,7 @@ import shutil ...@@ -37,7 +37,7 @@ import shutil
import logging import logging
import string import string
import random import random
import testnodeUtils import Utils
from ProcessManager import SubprocessError, ProcessManager, CancellationError from ProcessManager import SubprocessError, ProcessManager, CancellationError
from subprocess import CalledProcessError from subprocess import CalledProcessError
from Updater import Updater from Updater import Updater
...@@ -213,7 +213,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),)) ...@@ -213,7 +213,7 @@ late a SlapOS (positive) answer." %(str(os.getpid()),str(os.getpid()),))
if self.testnode.test_suite_portal.isMasterTestnode( if self.testnode.test_suite_portal.isMasterTestnode(
self.testnode.config['test_node_title']): self.testnode.config['test_node_title']):
# Get from ERP5 Master the configuration of the cluster for the test # Get from ERP5 Master the configuration of the cluster for the test
test_configuration = testnodeUtils.deunicodeData( test_configuration = Utils.deunicodeData(
json.loads(self.testnode.test_suite_portal.generateConfiguration( json.loads(self.testnode.test_suite_portal.generateConfiguration(
node_test_suite.test_suite_title) node_test_suite.test_suite_title)
) )
......
...@@ -37,7 +37,7 @@ import shutil ...@@ -37,7 +37,7 @@ import shutil
import logging import logging
import string import string
import random import random
import testnodeUtils import Utils
import traceback import traceback
...@@ -312,7 +312,7 @@ branch = %(branch)s ...@@ -312,7 +312,7 @@ branch = %(branch)s
self.test_suite_portal = taskdistribution.TaskDistributor(portal_url, logger=DummyLogger(log)) self.test_suite_portal = taskdistribution.TaskDistributor(portal_url, logger=DummyLogger(log))
self.test_suite_portal.subscribeNode(config['test_node_title'], config['computer_id']) 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_json = self.test_suite_portal.startTestSuite(config['test_node_title'])
test_suite_data = testnodeUtils.deunicodeData(json.loads(test_suite_json)) test_suite_data = Utils.deunicodeData(json.loads(test_suite_json))
log("Got following test suite data from master : %r" % \ log("Got following test suite data from master : %r" % \
(test_suite_data,)) (test_suite_data,))
# TODO : implement this method for each distributor # TODO : implement this method for each 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