diff --git a/tests/test_mpsd_software.py b/tests/test_mpsd_software.py index b03a2e5f70df92861d1db7627ddf757d56de4370..d119fcbb8d2ba76d0227c88eb4b0003b7305e6a5 100644 --- a/tests/test_mpsd_software.py +++ b/tests/test_mpsd_software.py @@ -789,6 +789,16 @@ def test_remove_package_sets(tmp_path, simple_toolchain): shell=True, check=True, ) + # check that the logs directory contains a build log for remove cmd + # dev-23a_zen3_2023-08-11T15-55-54_BUILD_toolchain2_remove.log + logs_dir = tmp_path / release_to_test / "logs" + # remove_build_log is the last log file in the list + remove_build_log = sorted(list(logs_dir.iterdir()))[-1] + assert "toolchain2_remove.log" in remove_build_log.name + with open(remove_build_log, "r") as f: + logs = f.read() + assert "==> Will not uninstall zlib@" in logs + assert "==> Successfully removed environment 'toolchain2'" in logs def test_remove_global_package_sets():