test/audit.py: Get tests to pass using mock packages
This commit is contained in:
parent
6de1ebd71a
commit
062d3643b2
@ -114,7 +114,7 @@ def test_package_audits(packages, expected_errors, mock_packages):
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_config_audits(config_section, data, failing_check):
|
||||
def test_config_audits(config_section, data, failing_check, mock_packages):
|
||||
with spack.config.override(config_section, data):
|
||||
reports = spack.audit.run_group("configs")
|
||||
assert any((check == failing_check) and errors for check, errors in reports)
|
||||
|
15
var/spack/repos/builtin.mock/packages/openssl/package.py
Normal file
15
var/spack/repos/builtin.mock/packages/openssl/package.py
Normal file
@ -0,0 +1,15 @@
|
||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack.package import *
|
||||
|
||||
|
||||
class Openssl(Package):
|
||||
version("3.4.0")
|
||||
|
||||
#variant("internal-hwloc", default=False)
|
||||
#variant("fabrics", values=any_combination_of("psm", "mxm"))
|
||||
|
||||
#depends_on("hwloc", when="~internal-hwloc")
|
Loading…
Reference in New Issue
Block a user