]> code.ossystems Code Review - openembedded-core.git/commit
selftest/cases/signing: ignore removal errors when cleaning temporary gpg directory
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Tue, 26 Sep 2017 19:36:03 +0000 (12:36 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Oct 2017 16:26:58 +0000 (17:26 +0100)
commite7f139c5d97a3871215c88c5bfc07ecf4e8fd7f3
treef91fac3757af93b728cdd94ddf71657188709250
parentfdb9c64f225eaf94c9087dfac52ed6a7779b0744
selftest/cases/signing: ignore removal errors when cleaning temporary gpg directory

The high-level method tempfile.TemporaryDirectory give us no way to
ignore erros on removal thus use tempfile.mkdtemp instead. Ignoring possible issues
on removal is neccesary because it contains gpg sockets that are automatically removed
by the system once the process terminates, otherwise the following log is observed:

  ..
  ..
  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.browser'

[YOCTO #11821]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oeqa/selftest/signing.py