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

redesign the status test

parent f87e6cb7
No related branches found
No related tags found
1 merge request!57Try remove cmd
...@@ -464,6 +464,13 @@ def create_fake_environment(tmp_path, mpsd_release, expected_toolchain_map=None) ...@@ -464,6 +464,13 @@ def create_fake_environment(tmp_path, mpsd_release, expected_toolchain_map=None)
toolchain_lua_file.touch() toolchain_lua_file.touch()
return expected_toolchain_map return expected_toolchain_map
def test_environment_status(tmp_path):
"""Test that the environment status is correct."""
toolchain_map = mod.environment_status("fake-release", tmp_path)
assert toolchain_map is None
mpsd_release = "dev-23a"
expected_toolchain_map = create_fake_environment(tmp_path, mpsd_release)
# check that the environment statuxis is correct
toolchain_map = mod.environment_status(mpsd_release, tmp_path) toolchain_map = mod.environment_status(mpsd_release, tmp_path)
# convert each list to a set to ensure that the order doesn't matter # convert each list to a set to ensure that the order doesn't matter
for microarch in expected_toolchain_map.keys(): for microarch in expected_toolchain_map.keys():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment