Commit 516ab724 authored by Sebastien Robin's avatar Sebastien Robin

handle network failures when getting repository source code

parent af519422
from setuptools import setup, find_packages
name = "erp5.recipe.testnode"
version = '1.0.22'
version = '1.0.23'
def read(name):
return open(name).read()
......
......@@ -97,6 +97,7 @@ repository = %(repository_path)s
try:
while True:
# kill processes from previous loop if any
try:
for pgpid in process_group_pid_set:
try:
os.killpg(pgpid, signal.SIGTERM)
......@@ -206,6 +207,9 @@ repository = %(repository_path)s
process_group_pid_set.add(run_test_suite.pid)
run_test_suite.wait()
process_group_pid_set.remove(run_test_suite.pid)
except SubprocessError:
time.sleep(120)
continue
finally:
# Nice way to kill *everything* generated by run process -- process
......
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