From bfd4d28aa4e9491eff6c80b549ca6132a1199c18 Mon Sep 17 00:00:00 2001 From: gti Date: Thu, 24 Sep 2026 11:25:27 -0300 Subject: [PATCH] test: keep installer tests out of the real installer.log Co-Authored-By: Claude Sonnet 5 --- tests/test_zero_touch_installer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_zero_touch_installer.py b/tests/test_zero_touch_installer.py index a32795e..cc43373 100644 --- a/tests/test_zero_touch_installer.py +++ b/tests/test_zero_touch_installer.py @@ -22,6 +22,7 @@ ENROLL = {"agent_id": 7, "agent_token": "tok-never-in-env", "hub_url": "https:// @pytest.fixture def world(tmp_path, monkeypatch): calls = [] + monkeypatch.setenv("GTI_LOG_DIR", str(tmp_path / "logs")) # never write the real ProgramData installer.log from tests monkeypatch.setenv("GTI_INSTALL_DIR", str(tmp_path / "inst")) monkeypatch.setattr(setup_main, "MEIPASS", tmp_path / "payload") payload = tmp_path / "payload"