Don't print error output in the test whether gpgconf works (#26682)

This commit is contained in:
Harmen Stoppels 2021-10-18 15:52:53 +02:00 committed by GitHub
parent 1156c7d0a9
commit 1e5f7b3542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,7 +344,7 @@ def _gpgconf():
# ensure that the gpgconf we found can run "gpgconf --create-socketdir" # ensure that the gpgconf we found can run "gpgconf --create-socketdir"
try: try:
exe('--dry-run', '--create-socketdir') exe('--dry-run', '--create-socketdir', output=os.devnull, error=os.devnull)
except spack.util.executable.ProcessError: except spack.util.executable.ProcessError:
# no dice # no dice
exe = None exe = None