diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-01-22 23:04:16 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2020-01-22 14:04:16 -0800 |
commit | 74266ea789bfb691597e272aa0a11ebf1e24dcce (patch) | |
tree | e8131c5a0bc6e144eeeeb71e05f84e7f496122f0 /var | |
parent | 7a0990903fbca221e044eb43edae6fd39dcca4eb (diff) | |
download | spack-74266ea789bfb691597e272aa0a11ebf1e24dcce.tar.gz spack-74266ea789bfb691597e272aa0a11ebf1e24dcce.tar.bz2 spack-74266ea789bfb691597e272aa0a11ebf1e24dcce.tar.xz spack-74266ea789bfb691597e272aa0a11ebf1e24dcce.zip |
tests: removed code duplication (#14596)
- [x] Factored to a common place the fixture `testing_gpg_directory`, renamed it as
`mock_gnupghome`
- [x] Removed altogether the function `has_gnupg2`
For `has_gnupg2`, since we were not trying to parse the version from the output of:
```console
$ gpg2 --version
```
this is effectively equivalent to check if `spack.util.gpg.GPG.gpg()` was found. If we need to ensure version is `^2.X` it's probably better to do it in `spack.util.gpg.GPG.gpg()` than in a separate function.
Diffstat (limited to 'var')
0 files changed, 0 insertions, 0 deletions