URL:
https://github.com/freeipa/freeipa/pull/5373
Author: abbra
Title: #5373: ipatests: fix race condition in finalizer of encrypted backup test
Action: opened
PR body:
"""
When using a fixture, we get a temporary directory created and then
removed by pytest. Pytest uses `shutil.rmtree` call which collects all
files in the directory being removed and then removes them one by one.
At the point of removal of our GNUPGHOME directory, gpg daemon is being
shut down and there might still be an agent UNIX domain socket. The
removal actually overlaps in time with shut down of the gpg daemon, thus
causing `shutil.rmtree()` to fail when an agent UNIX domain socket is
removed by the daemon.
Wait in the finalizer method until the UNIX domain socket of gpg agent
does disappear.
Signed-off-by: Alexander Bokovoy <abokovoy(a)redhat.com>
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5373/head:pr5373
git checkout pr5373