test/audit.py: Get tests to pass using mock packages

This commit is contained in:
Tamara Dahlgren 2024-12-19 18:31:24 -08:00
parent 6de1ebd71a
commit 062d3643b2
No known key found for this signature in database
GPG Key ID: 1DFB48B82B5BB5C4
2 changed files with 16 additions and 1 deletions

View File

@ -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)

View 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")