Skip to content

Commit 4a73b06

Browse files
author
Rowan Marchant-Williams
committed
Update stale env var on non debug test run
1 parent 3ff9204 commit 4a73b06

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Components/TestExplorer.fs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,12 @@ module DotnetCli =
578578
childEnv |> box |> Some
579579

580580
Process.execWithCancel "dotnet" (ResizeArray(args)) env tryLaunchDebugger cancellationToken
581-
| NoDebug -> Process.execWithCancel "dotnet" (ResizeArray(args)) None ignore cancellationToken
581+
| NoDebug ->
582+
let env =
583+
let staleOverrides = {| VSTEST_HOST_DEBUG = 0 |}
584+
staleOverrides |> box |> Some
585+
586+
Process.execWithCancel "dotnet" (ResizeArray(args)) env ignore cancellationToken
582587

583588

584589
type TrxPath = string

0 commit comments

Comments
 (0)