Skip to content

Commit

Permalink
Fix runtime tests on Android (#64950)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
akoeplinger authored Feb 8, 2022
1 parent 73a075e commit af42c8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tests/Common/XHarnessRunnerLibrary/RunnerEntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TestAssemblyInfo> GetTestAssemblies() => Array.Empty<TestAssemblyInfo>();
Expand Down

0 comments on commit af42c8e

Please sign in to comment.