Suppress insecure memory warnings
This commit is contained in:
parent
437ae2b719
commit
397d45ccd0
1 changed files with 6 additions and 3 deletions
|
@ -567,12 +567,15 @@ def gnupg(tmpdir_factory, runner):
|
||||||
|
|
||||||
home = tmpdir_factory.mktemp('gnupghome')
|
home = tmpdir_factory.mktemp('gnupghome')
|
||||||
home.chmod(0o700)
|
home.chmod(0o700)
|
||||||
conf = home.join('gpg-agent.conf')
|
conf = home.join('gpg.conf')
|
||||||
conf.write(
|
conf.write('no-secmem-warning\n')
|
||||||
|
conf.chmod(0o600)
|
||||||
|
agentconf = home.join('gpg-agent.conf')
|
||||||
|
agentconf.write(
|
||||||
f'pinentry-program {os.path.abspath("test/pinentry-mock")}\n'
|
f'pinentry-program {os.path.abspath("test/pinentry-mock")}\n'
|
||||||
'max-cache-ttl 0\n'
|
'max-cache-ttl 0\n'
|
||||||
)
|
)
|
||||||
conf.chmod(0o600)
|
agentconf.chmod(0o600)
|
||||||
data = collections.namedtuple('GNUPG', ['home', 'pw'])
|
data = collections.namedtuple('GNUPG', ['home', 'pw'])
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env['GNUPGHOME'] = home
|
env['GNUPGHOME'] = home
|
||||||
|
|
Loading…
Reference in a new issue