diff --git a/tests.py b/tests.py
index 542927925b7ec107815ad58ee6fa8a2bc6fca998..a050501fc98045e75f5864f8c8935ae1edbf368e 100644
--- a/tests.py
+++ b/tests.py
@@ -301,11 +301,11 @@ def test_install_environment_zlib():
     os.path.basename(build_log)
 
     # assert that install log files exists
-    assert os.path.exists(release_base_dir / cmd_log_file)
+    assert os.path.exists(root_dir / cmd_log_file)
 
     # assert that the build log is written to the install log file
     os.path.basename(build_log)
-    with open(release_base_dir / cmd_log_file, "r") as f:
+    with open(root_dir / cmd_log_file, "r") as f:
         lines = f.read()
         assert (
             f"installing {toolchain_to_test} and logging at {str(build_log)}" in lines