]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/selftest/case: Use bb.utils.remove() instead of shutil.remove()
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Nov 2018 12:03:50 +0000 (12:03 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Nov 2018 22:13:11 +0000 (22:13 +0000)
commit3b06853f590d6f32129ceea5a5dd220f0b949c2b
tree8c4dae300d9cd0a363ff2889225c97cc57a9f4a8
parentff60dc33becb383244338fdcff4bb90867c4e06e
oeqa/selftest/case: Use bb.utils.remove() instead of shutil.remove()

This avoids problems where shutil.remove will error with:

  File "/usr/lib/python3.5/shutil.py", line 436, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.extra'

when there are races over file deletion (gpg agent may be slow to exit).

We already worked around speed and race issues in bb.utils.

(From OE-Core rev: 00a8fd5b93a5c19ce0b7498e2bc653ce8ad58aaf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/case.py