Skip to content
Snippets Groups Projects
Commit 45b56d3f authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

simplify tests

parent 61849a31
No related branches found
No related tags found
1 merge request!57Try remove cmd
...@@ -446,14 +446,12 @@ def test_create_log_file_names(): ...@@ -446,14 +446,12 @@ def test_create_log_file_names():
assert build_log_file_name is None assert build_log_file_name is None
def test_environment_status(tmp_path): def create_fake_environment(tmp_path, mpsd_release, expected_toolchain_map=None):
"""Test that the environment status is correct.""" """Create a fake environment with toolchains for testing."""
toolchain_map = mod.environment_status("fake-release", tmp_path) if not expected_toolchain_map:
assert toolchain_map is None test_microarch = mod.get_native_microarchitecture()
# create a fake environment expected_toolchain_map = {test_microarch: ["foss2021a", "intel2021a"]}
mpsd_release = "dev-23a"
test_microarch = mod.get_native_microarchitecture()
expected_toolchain_map = {test_microarch: ["foss2021a", "intel2021a"]}
for microarch in expected_toolchain_map.keys(): for microarch in expected_toolchain_map.keys():
toolchain_lmod_folder = ( toolchain_lmod_folder = (
tmp_path / mpsd_release / microarch / "lmod" / "Core" / "toolchains" tmp_path / mpsd_release / microarch / "lmod" / "Core" / "toolchains"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment