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

test the presence of build_logs

parent 1a01f895
No related branches found
No related tags found
2 merge requests!19Move linux-debian11 into main,!1Resolve "First draft for user interface for top level install command"
...@@ -170,6 +170,20 @@ def test_install_environment(tmp_path): ...@@ -170,6 +170,20 @@ def test_install_environment(tmp_path):
lines = f.read() lines = f.read()
assert 'zlib' in lines assert 'zlib' in lines
# test that the build log is created correctly
# check that a file with glob build_globale_generic_dev-23a*.log exists at release_base_dir/mpsd_microarch
build_log = list((release_base_dir/mpsd_microarch).glob('build_global_generic_dev-23a*.log'))
assert len(build_log) > 0
# take the most recent build log
build_log = sorted(build_log)[0]
# check that the build log contains statement ##### Installation finished
with open(build_log,'r') as f:
lines = f.read()
assert '##### Installation finished' in lines
def test_interface(tmp_path): def test_interface(tmp_path):
pass pass
...@@ -177,4 +191,4 @@ def test_interface(tmp_path): ...@@ -177,4 +191,4 @@ def test_interface(tmp_path):
# check that the script branch and hash are correct when running the script # check that the script branch and hash are correct when running the script
# check that the help message is printed when no arguments are provided # check that the help message is printed when no arguments are provided
# check that the help message is printed when -h is provided # check that the help message is printed when -h is provided
# check that the error messages are also logged to the log file
\ No newline at end of file \ No newline at end of file
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