summaryrefslogtreecommitdiff
path: root/scripts/docker
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/docker')
-rwxr-xr-xscripts/docker/files/bin/setup-test-env.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/docker/files/bin/setup-test-env.py b/scripts/docker/files/bin/setup-test-env.py
index 0f3ea6f4..c0487e8f 100755
--- a/scripts/docker/files/bin/setup-test-env.py
+++ b/scripts/docker/files/bin/setup-test-env.py
@@ -389,8 +389,11 @@ def cert_create(args):
def cert_delete(args):
private_key = os.path.join(args.basedir, args.private_key)
cert_key = os.path.join(args.basedir, args.cert_key)
- os.unlink(private_key)
- os.unlink(cert_key)
+ try:
+ os.unlink(private_key)
+ os.unlink(cert_key)
+ except OSError:
+ pass
#