test: keep installer tests out of the real installer.log

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
gti
2026-09-24 11:25:27 -03:00
co-authored by Claude Sonnet 5
parent 065cdc4eff
commit bfd4d28aa4
+1
View File
@@ -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"