Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

test(browser): enable fault traces in the isolated fixture worker

rubenluetke10-beepa965e59299c0
diff --git a/tests/contract/test_browser_live.py b/tests/contract/test_browser_live.py
index 7e7dc31506..a16a7ca9e8 100644
--- a/tests/contract/test_browser_live.py
+++ b/tests/contract/test_browser_live.py
@@ -135,7 +135,12 @@ def site():
@pytest.fixture
def live(tmp_path, monkeypatch):
- monkeypatch.setenv("PYTHONFAULTHANDLER", "1")
+ worker_env = install.worker_env
+
+ def diagnostic_env(*args, **kwargs):
+ return {**worker_env(*args, **kwargs), "PYTHONFAULTHANDLER": "1"}
+
+ monkeypatch.setattr(install, "worker_env", diagnostic_env)
python = Path(os.environ["JARVIS_BROWSER_TEST_PYTHON"])
binary = Path(os.environ["JARVIS_BROWSER_TEST_EXECUTABLE"])
monkeypatch.setattr(install, "is_installed", lambda _: True)