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

test remove_build_log and its contents

parent 6149434e
No related branches found
No related tags found
1 merge request!82Remove cmd
......@@ -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():
......
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