summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-07-22 20:14:26 +0200
committerdrebs <drebs@leap.se>2016-07-25 09:19:50 -0300
commit0514978eeed0e4db41fe13b3352ab55ccf299ef1 (patch)
tree0c96fa74d10e0453f533d04da44c09a989a3584d /scripts
parent36f3daf7ae3a76711cdc319a97a835047cd22605 (diff)
[test] fail gracefully on cert delete
Diffstat (limited to 'scripts')
-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
#