tell me more

This commit is contained in:
Brad Warren 2022-10-13 16:25:05 -07:00
parent 435266b80c
commit 9fc29bbe91

View file

@ -94,7 +94,7 @@ class ACMEServer:
if e.errno != errno.ESRCH:
raise
for process in self._processes:
process.wait()
process.wait(300)
if os.path.exists(os.path.join(self._workspace, 'boulder')):
# Boulder docker generates build artifacts owned by root with 0o744 permissions.
@ -103,14 +103,15 @@ class ACMEServer:
# We need to do it through a docker.
process = self._launch_process(['docker', 'run', '--rm', '-v',
'{0}:/workspace'.format(self._workspace),
'alpine', 'rm', '-rf', '/workspace/boulder'])
process.wait()
'alpine', 'rm', '-rf', '/workspace/boulder'],
force_stderr=True)
process.wait(300)
finally:
if os.path.exists(self._workspace):
shutil.rmtree(self._workspace)
if self._stdout != sys.stdout:
self._stdout.close()
print('=> Test infrastructure stopped and cleaned up.')
print('=> Test infrastructure stopped and cleaned up.', flush=True)
def __enter__(self) -> Dict[str, Any]:
self.start()