test(e2e/windows): real C:\Users profiles, serialized gateway phases, Git-for-Windows machines

This commit is contained in:
teknium1
2026-09-26 18:37:15 -07:00
committed by Teknium
parent 22fe26db2a
commit 16da7f1b38
8 changed files with 157 additions and 68 deletions

View File

@@ -145,8 +145,9 @@ _pf86="$(env | sed -n 's/^ProgramFiles(x86)=//p' | head -n1)"
# * CI / GITHUB_ACTIONS tell suites they run on a disposable runner (e.g.
# tests/e2e/core/upgrade runs the real updater unsandboxed only there).
# * HERMES_E2E_WINDOWS_INSTALL opts tests/e2e/core/windows_update into running
# the real install.ps1 (it writes HKCU PATH); HERMES_E2E_MACHINE_ROOT and
# HERMES_E2E_ARTIFACTS place its fake machines and the transcripts CI uploads.
# the real install.ps1 (it writes HKCU PATH); HERMES_E2E_MACHINE_ROOT,
# HERMES_E2E_PROFILES_ROOT and HERMES_E2E_ARTIFACTS place its fake machines,
# their user profiles and the transcripts CI uploads.
#
# These are test-infrastructure knobs, not credentials — same class as the
# HERMES_RUN_SLOW_PET_TESTS / HERMES_E2E_BROWSER / HERMES_RUN_E2E opt-ins
@@ -160,7 +161,7 @@ TEST_ENV=()
for _test_var in HERMES_TEST_IMAGE HERMES_TEST_WORKERS HERMES_TEST_PATHS \
HERMES_TEST_FILE_TIMEOUT HERMES_TEST_FILE_RETRIES HERMES_TEST_SLICE \
SSL_CERT_FILE SSL_CERT_DIR HERMES_GATEWAY_LOCK_DIR HERMES_E2E_REQUIRE_TUI CI GITHUB_ACTIONS \
HERMES_E2E_WINDOWS_INSTALL HERMES_E2E_MACHINE_ROOT HERMES_E2E_ARTIFACTS; do
HERMES_E2E_WINDOWS_INSTALL HERMES_E2E_MACHINE_ROOT HERMES_E2E_PROFILES_ROOT HERMES_E2E_ARTIFACTS; do
if [ -n "${!_test_var:-}" ]; then
TEST_ENV+=("$_test_var=${!_test_var}")
fi