diff --git a/tests.py b/tests.py index 16690420b22862c6ee3cf28e7050b2e27b7759bd..5ca3035b6cb224408988cb6bd2f3e49c480ac8b8 100644 --- a/tests.py +++ b/tests.py @@ -268,6 +268,8 @@ def test_install_environment_zlib(): ) with open(setup_file, "w") as f: f.write(lines) + + # install global_generic toolchain mod.install_environment( mpsd_release=mpsd_release_to_test, @@ -316,6 +318,24 @@ def test_install_environment_zlib(): 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): """Test that metadata is logged and read correctly.""" # Test that the metadata is logged correctly