summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2020-10-26 07:24:49 -0700
committerGitHub <noreply@github.com>2020-10-26 07:24:49 -0700
commitfd6c163e0279b69206cb24b605b4ca275e39020c (patch)
tree553fae4359f31835c0d43b4646205c00325c9728 /lib
parent2e3355d2f9d7f62979fcf7b5f7736c37a1e264b9 (diff)
downloadspack-fd6c163e0279b69206cb24b605b4ca275e39020c.tar.gz
spack-fd6c163e0279b69206cb24b605b4ca275e39020c.tar.bz2
spack-fd6c163e0279b69206cb24b605b4ca275e39020c.tar.xz
spack-fd6c163e0279b69206cb24b605b4ca275e39020c.zip
bugfix: test_push_and_fetch_keys should be skipped w/o gpg (#19511)
- [x] add a `@pytest.skipif` decorator
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/bindist.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/test/bindist.py b/lib/spack/spack/test/bindist.py
index 9b2f1b1408..929d8c3d43 100644
--- a/lib/spack/spack/test/bindist.py
+++ b/lib/spack/spack/test/bindist.py
@@ -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)