Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding regression test for modules #1503

Merged
merged 12 commits into from
Jul 7, 2023
15 changes: 15 additions & 0 deletions tests/cli/test_build.py
shahzebsiddiqui marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,21 @@ def test_build_buildspecs(self):
)
cmd.build()

@pytest.mark.cli
def test_buildspec_with_module_injection(self):
"""This test run a buildspec with module injection. This will load and unload modules"""

# buildtest build --tags python --modules gcc/9.1.0 --unload-modules gcc --module-purge
cmd = BuildTest(
configuration=configuration,
tags=["python"],
buildtest_system=self.system,
modulepurge=True,
modules="gcc/9.1.0",
unload_modules="gcc",
)
cmd.build()

def test_run_metrics(self):
cmd = BuildTest(
configuration=configuration,
Expand Down
Loading