diff --git a/tests/test_mpsd_software.py b/tests/test_mpsd_software.py index 96bb22de3a331282407a27092090f58fbc3c827e..31ecf268feac4c39bea62b363d71a4341d9ae8ff 100644 --- a/tests/test_mpsd_software.py +++ b/tests/test_mpsd_software.py @@ -690,7 +690,10 @@ def test_remove_environment(tmp_path, mocker): # check that the release directory is empty assert len(list(release_dir.iterdir())) == 0 # check that the logs directory is non-empty - assert len(list(logs_dir.iterdir())) == 2 # APEX + remove_build_log + list_of_logs = list(logs_dir.iterdir()) + assert len(list_of_logs) == 2 # APEX + remove_build_log + # check that one of the log has 'remove.log' as part of the name + assert "BUILD_ALL_remove.log" in ",".join([str(x) for x in list_of_logs]) # Test case3 - remove specific package_sets # defined in test_remove_package_sets