mirror of
https://github.com/mirror/wget.git
synced 2025-01-27 12:50:13 +08:00
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:
parent
2486320a2a
commit
95891cbba3
@ -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': ''}
|
||||
|
Loading…
Reference in New Issue
Block a user