From f0ae98ef57855110b018c023c471e7ead4de2a70 Mon Sep 17 00:00:00 2001 From: Julie Yaunches Date: Wed, 20 May 2026 08:04:08 -0400 Subject: [PATCH] test: force non-wsl docker bootstrap path --- test/install-preflight.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/install-preflight.test.ts b/test/install-preflight.test.ts index dc48433303c..5e70ce7a81b 100644 --- a/test/install-preflight.test.ts +++ b/test/install-preflight.test.ts @@ -2854,6 +2854,11 @@ printf 'Linux\\n' "-c", ` source "$INSTALLER_UNDER_TEST" >/dev/null +# These tests validate the Linux Docker bootstrap branches. On a real WSL +# runner the installer intentionally skips that bootstrap, so force the helper +# under test to behave as a non-WSL Linux host while keeping uname/id/docker +# stubbed through PATH. +is_wsl_host() { return 1; } info() { printf 'INFO: %s\\n' "$*" >&2; } warn() { printf 'WARN: %s\\n' "$*" >&2; } error() { printf 'ERROR: %s\\n' "$*" >&2; exit 1; }