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

add new test to run installer twice

This is to ensure that running the same command twice dosent lead to unexpected behaviour
parent cf0f8dd6
No related branches found
No related tags found
1 merge request!29Restructure log location
Pipeline #370055 failed
...@@ -268,6 +268,8 @@ def test_install_environment_zlib(): ...@@ -268,6 +268,8 @@ def test_install_environment_zlib():
) )
with open(setup_file, "w") as f: with open(setup_file, "w") as f:
f.write(lines) f.write(lines)
# install global_generic toolchain # install global_generic toolchain
mod.install_environment( mod.install_environment(
mpsd_release=mpsd_release_to_test, mpsd_release=mpsd_release_to_test,
...@@ -316,6 +318,24 @@ def test_install_environment_zlib(): ...@@ -316,6 +318,24 @@ def test_install_environment_zlib():
assert "zlib" in lines assert "zlib" in lines
# install again to ensure that
# commands that skip creation of folders when
# they are already present works as expected
mod.install_environment(
mpsd_release=mpsd_release_to_test,
toolchains=[toolchain_to_test],
script_dir=script_dir,
enable_build_cache=False,
)
build_log = list(
(release_base_dir / "logs").glob(
f"{mpsd_release_to_test}_{mpsd_microarch}_*_install.log"
)
)
assert len(build_log) > 1
def test_metadata_logging(tmp_path): def test_metadata_logging(tmp_path):
"""Test that metadata is logged and read correctly.""" """Test that metadata is logged and read correctly."""
# Test that the metadata is logged correctly # Test that the metadata is logged correctly
......
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