Skip to content

The agent that grows with you

fix: use selected test Python for isolated upgrade CLI checks

ethernetdf1ac9ae3f75
diff --git a/tests/e2e/core/upgrade/test_profile_update_cron.py b/tests/e2e/core/upgrade/test_profile_update_cron.py
index b266a63d1fe..ebc644ac852 100644
--- a/tests/e2e/core/upgrade/test_profile_update_cron.py
+++ b/tests/e2e/core/upgrade/test_profile_update_cron.py
@@ -16,6 +16,7 @@ from __future__ import annotations
import json
import shutil
+import sys
from pathlib import Path
import pytest
@@ -29,7 +30,7 @@ pytestmark = [
]
-PY = str(H.WORKTREE / ".venv" / "bin" / "python")
+PY = sys.executable
class World:
diff --git a/tests/e2e/core/upgrade/test_update_userstate_import.py b/tests/e2e/core/upgrade/test_update_userstate_import.py
index 293c6004ee2..8b0a5108caf 100644
--- a/tests/e2e/core/upgrade/test_update_userstate_import.py
+++ b/tests/e2e/core/upgrade/test_update_userstate_import.py
@@ -11,6 +11,7 @@ existing home untouched.
from __future__ import annotations
import shutil
+import sys
import zipfile
from pathlib import Path
@@ -24,7 +25,7 @@ pytestmark = [
pytest.mark.skipif(H.sandbox_required_reason() is not None, reason=str(H.sandbox_required_reason())),
]
-PY = str(H.WORKTREE / ".venv" / "bin" / "python")
+PY = sys.executable
RESTORED = "has been restored"
CURRENT_CONFIG = "# the user's CURRENT config, which a failed import must not touch\nmodel:\n default: current-model\n"
SKILL = "---\nname: demo\ndescription: demo skill from the backup\n---\n" + ("body line\n" * 400)