Ignore dirmngr.conf, gpg.conf in test directories

* testenv/conf/expected_files.py: Ignore dirmngr.conf, gpg.conf

Libgpgme creates certain files if $HOME doesn't contain the .gnupg directory.
These files disturb some metalink tests if we don't ignore them.

Reported-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
This commit is contained in:
Tim Rühsen 2017-10-30 13:04:09 +01:00
parent 2486320a2a
commit 95891cbba3

View File

@ -24,9 +24,9 @@ class ExpectedFiles:
snapshot = {}
for parent, dirs, files in os.walk('.'):
for name in files:
# pubring.kbx will be created by libgpgme if $HOME doesn't contain the .gnupg directory.
# setting $HOME to CWD (in base_test.py) breaks two Metalink tests, so we skip this file here.
if name == 'pubring.kbx':
# pubring.kbx, dirmngr.conf, gpg.conf will be created by libgpgme if $HOME doesn't contain the .gnupg directory.
# setting $HOME to CWD (in base_test.py) breaks two Metalink tests, so we skip this file here.
if name in [ 'pubring.kbx', 'dirmngr.conf', 'gpg.conf' ]:
continue
f = {'content': ''}