bugfix: test_push_and_fetch_keys should be skipped w/o gpg (#19511)

- [x] add a `@pytest.skipif` decorator
This commit is contained in:
Todd Gamblin 2020-10-26 07:24:49 -07:00 committed by GitHub
parent 2e3355d2f9
commit fd6c163e02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,6 +473,8 @@ def test_relative_rpaths_install_nondefault(tmpdir,
mirror.mirror(mparser, margs)
@pytest.mark.skipif(not spack.util.gpg.has_gpg(),
reason='This test requires gpg')
def test_push_and_fetch_keys(mock_gnupghome):
testpath = str(mock_gnupghome)