Commit 49f586d7 authored by Julien Muchembled's avatar Julien Muchembled

wip

parent ce776ac9
...@@ -12,7 +12,7 @@ SUMMARY_RE = re.compile( \ ...@@ -12,7 +12,7 @@ SUMMARY_RE = re.compile( \
re.MULTILINE) re.MULTILINE)
# NEO specific environment # NEO specific environment
TEMP_DIRECTORY = '{{neo_temp_directory}}' TEMP_DIRECTORY = '{{neo_temp_directory}}/neo_tests'
NEO_DB_SOCKET = '{{my_cnf_parameters.socket}}' NEO_DB_SOCKET = '{{my_cnf_parameters.socket}}'
RUN_NEO_TESTS_COMMAND = '{{ neotestrunner }}' RUN_NEO_TESTS_COMMAND = '{{ neotestrunner }}'
...@@ -80,15 +80,16 @@ def main(): ...@@ -80,15 +80,16 @@ def main():
project_title = args.project_title) project_title = args.project_title)
if test_result is None: if test_result is None:
return return
# clean up previous runs
for x in os.listdir(TEMP_DIRECTORY):
shutil.rmtree(os.path.join(TEMP_DIRECTORY, x))
# run NEO tests # run NEO tests
while 1: while 1:
test_result_line = test_result.start() test_result_line = test_result.start()
if not test_result_line: if not test_result_line:
break break
if os.path.exists(TEMP_DIRECTORY):
shutil.rmtree(TEMP_DIRECTORY)
os.mkdir(TEMP_DIRECTORY)
# XXX: add '-z' - i.e. ZODB tests when find out why it stalled execution. # XXX: add '-z' - i.e. ZODB tests when find out why it stalled execution.
args = [RUN_NEO_TESTS_COMMAND, '-uf'] args = [RUN_NEO_TESTS_COMMAND, '-uf']
command = ' '.join(args) command = ' '.join(args)
......
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