Skip to content

Can we avoid resetting all env vars for some remotely executed tests? #100505

Closed
@AndyAyersMS

Description

@AndyAyersMS

The environment clearing done here:

private static void RunUsingInvariantCulture(Action action)
{
Assert.True(CanTestInvariantCulture);
var psi = new ProcessStartInfo();
psi.Environment.Clear();
psi.Environment.Add("DOTNET_SYSTEM_GLOBALIZATION_INVARIANT", "true");
RemoteExecutor.Invoke(action, new RemoteInvokeOptions { StartInfo = psi, TimeOut = 10 * 60 * 1000 }).Dispose();
}

(and likely elsewhere) makes impossible to tunnel DOTNET options through the test layers to enable various JIT diagnostics and debugging techniques.

cc @MihaZupan @dotnet/jit-contrib

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions