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

make tests more precise

parent 0ade577b
No related branches found
No related tags found
1 merge request!29Restructure log location
Pipeline #370089 passed
......@@ -291,7 +291,7 @@ def test_install_environment_zlib():
f"{mpsd_release_to_test}_{mpsd_microarch}_*_install.log"
)
)
assert len(build_log) > 0
assert len(build_log) == 2
# take the most recent build log
build_log = sorted(build_log)[0]
# check that the build log contains statement ##### Installation finished
......@@ -325,6 +325,10 @@ def test_install_environment_zlib():
# they are already present works as expected
# reload the module to ensure that date changes
importlib.reload(mod)
mod.set_up_logging(
"WARNING",
mod.get_installer_log_file(mpsd_release_to_test, "install", script_dir),
)
mod.install_environment(
mpsd_release=mpsd_release_to_test,
toolchains=[toolchain_to_test],
......@@ -336,7 +340,7 @@ def test_install_environment_zlib():
f"{mpsd_release_to_test}_{mpsd_microarch}_*_install.log"
)
)
assert len(build_log) > 2
assert len(build_log) == 4
def test_metadata_logging(tmp_path):
......
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