Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions openadapt_evals/waa_deploy/evaluate_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,17 @@


class MockEnv:
"""Minimal env object matching what WAA getters expect."""
"""Minimal env object matching what WAA getters expect.

def __init__(self, ctrl):
WAA getter functions access env.vm_ip and env.controller (and sometimes
env.cache_dir) to communicate with the Windows VM. The vm_ip must match
the QEMU guest address used by the PythonController.
"""

def __init__(self, ctrl, vm_ip: str = "172.30.0.2", port: int = 5000):
self.controller = ctrl
self.vm_ip = vm_ip
self.port = port
self.cache_dir = "/tmp/eval_cache"
os.makedirs(self.cache_dir, exist_ok=True)

Expand Down
Loading