Skip to content

Commit 9753570

Browse files
committed
Pass cert_dir removal some of the time
1 parent 5aaf26a commit 9753570

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/registry/test_registry.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ def dind(registry, host_ip):
4848
try:
4949
yield f"tcp://127.0.0.1:{port}", cert_dir
5050
finally:
51-
shutil.rmtree(cert_dir)
51+
try:
52+
shutil.rmtree(cert_dir)
53+
except PermissionError:
54+
# Sometimes this is owned by root in CI. is ok, let's let it go
55+
pass
5256
proc.terminate()
5357
proc.wait()
5458

0 commit comments

Comments
 (0)