Pass cert_dir removal some of the time

pull/1421/head
YuviPanda 2025-02-28 13:06:17 -08:00
rodzic 5aaf26aa9d
commit 9753570370
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -48,7 +48,11 @@ def dind(registry, host_ip):
try:
yield f"tcp://127.0.0.1:{port}", cert_dir
finally:
shutil.rmtree(cert_dir)
try:
shutil.rmtree(cert_dir)
except PermissionError:
# Sometimes this is owned by root in CI. is ok, let's let it go
pass
proc.terminate()
proc.wait()