Commit cf559958 authored by Julien Muchembled's avatar Julien Muchembled

neo/tests/functional/__init__.py: remove trailing whitespaces

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2662 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e9fc4ee2
...@@ -60,7 +60,7 @@ class NEOProcess(object): ...@@ -60,7 +60,7 @@ class NEOProcess(object):
def __init__(self, command, uuid, arg_dict): def __init__(self, command, uuid, arg_dict):
path = os.getenv('PATH') path = os.getenv('PATH')
split_path = path.split(":") split_path = path.split(":")
for elt_path in split_path: for elt_path in split_path:
command_tmp = "%s/%s" % (elt_path, command) command_tmp = "%s/%s" % (elt_path, command)
if os.path.exists(command_tmp): if os.path.exists(command_tmp):
...@@ -68,7 +68,7 @@ class NEOProcess(object): ...@@ -68,7 +68,7 @@ class NEOProcess(object):
break break
else: else:
raise NotFound, '%s not found' % (command) raise NotFound, '%s not found' % (command)
self.arg_dict = arg_dict self.arg_dict = arg_dict
self.with_uuid = True self.with_uuid = True
self.setUUID(uuid) self.setUUID(uuid)
...@@ -198,9 +198,9 @@ class NEOCluster(object): ...@@ -198,9 +198,9 @@ class NEOCluster(object):
self.cluster_name = 'neo_%s' % (random.randint(0, 100), ) self.cluster_name = 'neo_%s' % (random.randint(0, 100), )
master_node_list = [self.__allocatePort() for i in xrange(master_node_count)] master_node_list = [self.__allocatePort() for i in xrange(master_node_count)]
self.master_nodes = '/'.join('%s:%s' % ( self.master_nodes = '/'.join('%s:%s' % (
buildUrlFromString(self.local_ip), x, ) buildUrlFromString(self.local_ip), x, )
for x in master_node_list) for x in master_node_list)
# create admin node # create admin node
self.__newProcess(NEO_ADMIN, { self.__newProcess(NEO_ADMIN, {
'--cluster': self.cluster_name, '--cluster': self.cluster_name,
...@@ -233,8 +233,8 @@ class NEOCluster(object): ...@@ -233,8 +233,8 @@ class NEOCluster(object):
'--adapter': adapter, '--adapter': adapter,
}) })
# create neoctl # create neoctl
self.neoctl = NeoCTL((self.local_ip, admin_port)) self.neoctl = NeoCTL((self.local_ip, admin_port))
def __newProcess(self, command, arguments): def __newProcess(self, command, arguments):
uuid = self.__allocateUUID() uuid = self.__allocateUUID()
arguments['--uuid'] = uuid arguments['--uuid'] = uuid
......
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