Commit d8be73f8 authored by Nicolas Delaby's avatar Nicolas Delaby

Deal with Shebang size limitation

parent e07c4382
from setuptools import setup, find_packages from setuptools import setup, find_packages
name = "erp5.recipe.testnode" name = "erp5.recipe.testnode"
version = '1.0.23' version = '1.0.24'
def read(name): def read(name):
return open(name).read() return open(name).read()
......
...@@ -198,12 +198,19 @@ repository = %(repository_path)s ...@@ -198,12 +198,19 @@ repository = %(repository_path)s
run_test_suite_revision = revision run_test_suite_revision = revision
if isinstance(revision, tuple): if isinstance(revision, tuple):
revision = ','.join(revision) revision = ','.join(revision)
run_test_suite = subprocess.Popen([run_test_suite_path, # Deal with Shebang size limitation
'--test_suite', config['test_suite_name'], file_object = open(run_test_suite_path, 'r')
'--revision', revision, line = file_object.readline()
'--node_quantity', config['node_quantity'], file_object.close()
'--master_url', config['test_suite_master_url'], invocation_list = []
], ) if line[:2] == '#!':
invocation_list = line[2:].split()
invocation_list.extend([run_test_suite_path,
'--test_suite', config['test_suite_name'],
'--revision', revision,
'--node_quantity', config['node_quantity'],
'--master_url', config['test_suite_master_url']])
run_test_suite = subprocess.Popen(invocation_list)
process_group_pid_set.add(run_test_suite.pid) process_group_pid_set.add(run_test_suite.pid)
run_test_suite.wait() run_test_suite.wait()
process_group_pid_set.remove(run_test_suite.pid) process_group_pid_set.remove(run_test_suite.pid)
......
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