From 4cce3458f3e6a38fbb3f39613aca1c9e1ebd86ca Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Thu, 23 Apr 2020 14:29:16 -0700 Subject: [PATCH] Avoid deleting the workspace twice. (#7923) --- certbot-ci/certbot_integration_tests/utils/acme_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/certbot-ci/certbot_integration_tests/utils/acme_server.py b/certbot-ci/certbot_integration_tests/utils/acme_server.py index fb202005e..0a6d3ff41 100755 --- a/certbot-ci/certbot_integration_tests/utils/acme_server.py +++ b/certbot-ci/certbot_integration_tests/utils/acme_server.py @@ -86,7 +86,8 @@ class ACMEServer(object): 'alpine', 'rm', '-rf', '/workspace/boulder']) process.wait() finally: - shutil.rmtree(self._workspace) + 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.')