Skip to content

Commit af42c8e

Browse files
authored
Fix runtime tests on Android (#64950)
In #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 #64920
1 parent 73a075e commit af42c8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tests/Common/XHarnessRunnerLibrary/RunnerEntryPoint.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ public override string TestsResultsFinalPath
9696
{
9797
get
9898
{
99-
string? publicDir = Environment.GetEnvironmentVariable("DOCSDIR");
100-
if (string.IsNullOrEmpty(publicDir))
101-
throw new ArgumentException("DOCSDIR should not be empty");
99+
string? testResultsDir = Environment.GetEnvironmentVariable("TEST_RESULTS_DIR");
100+
if (string.IsNullOrEmpty(testResultsDir))
101+
throw new ArgumentException("TEST_RESULTS_DIR should not be empty");
102102

103-
return Path.Combine(publicDir, "testResults.xml");
103+
return Path.Combine(testResultsDir, "testResults.xml");
104104
}
105105
}
106106
protected override IEnumerable<TestAssemblyInfo> GetTestAssemblies() => Array.Empty<TestAssemblyInfo>();

0 commit comments

Comments
 (0)