diff --git a/src/tests/Common/XHarnessRunnerLibrary/RunnerEntryPoint.cs b/src/tests/Common/XHarnessRunnerLibrary/RunnerEntryPoint.cs index 3a896f04f0341..4cbefd1589e9c 100644 --- a/src/tests/Common/XHarnessRunnerLibrary/RunnerEntryPoint.cs +++ b/src/tests/Common/XHarnessRunnerLibrary/RunnerEntryPoint.cs @@ -96,11 +96,11 @@ public override string TestsResultsFinalPath { get { - string? publicDir = Environment.GetEnvironmentVariable("DOCSDIR"); - if (string.IsNullOrEmpty(publicDir)) - throw new ArgumentException("DOCSDIR should not be empty"); + string? testResultsDir = Environment.GetEnvironmentVariable("TEST_RESULTS_DIR"); + if (string.IsNullOrEmpty(testResultsDir)) + throw new ArgumentException("TEST_RESULTS_DIR should not be empty"); - return Path.Combine(publicDir, "testResults.xml"); + return Path.Combine(testResultsDir, "testResults.xml"); } } protected override IEnumerable GetTestAssemblies() => Array.Empty();