diff --git a/test/runner.node.mjs b/test/runner.node.mjs index 3e99de39e1..a91eeaa597 100755 --- a/test/runner.node.mjs +++ b/test/runner.node.mjs @@ -695,14 +695,14 @@ function getTmpdir() { if (isWindows) { for (const key of ["TMPDIR", "TEMP", "TEMPDIR", "TMP", "RUNNER_TEMP"]) { const tmpdir = process.env[key] || ""; - if (!/^\/[a-z]\//i.test(tmpdir)) { - continue; - } // HACK: There are too many bugs with cygwin directories. // We should probably run Windows tests in both cygwin and powershell. if (/cygwin|cygdrive/i.test(tmpdir)) { continue; } + if (!/^[a-z]/i.test(tmpdir)) { + continue; + } const driveLetter = tmpdir[1]; return normalizeWindows(`${driveLetter.toUpperCase()}:${tmpdir.substring(2)}`); }