From 5772db1c7a2989f293feeed26bd79f6ba74a0305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Tue, 8 Feb 2022 00:34:45 +0100 Subject: [PATCH] Fix runtime tests on Android In https://github.com/dotnet/runtime/pull/64744 I changed the name of the env variable used to store the test results directoy but I didn't notice that the runtime tests don't use the same runner. Fixes https://github.com/dotnet/runtime/issues/64920 --- .../Common/XHarnessRunnerLibrary/RunnerEntryPoint.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/Common/XHarnessRunnerLibrary/RunnerEntryPoint.cs b/src/tests/Common/XHarnessRunnerLibrary/RunnerEntryPoint.cs index 3a896f04f03412..4cbefd1589e9c5 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();