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

wip

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