build/build.ps1: Fixed issues with check for Cli project causing test run to fail
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/25e972fc Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/25e972fc Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/25e972fc Branch: refs/heads/master Commit: 25e972fca80372071ccd032c547bb6c26ddbb4d8 Parents: 5a920d2 Author: Shad Storhaug <[email protected]> Authored: Mon Sep 11 16:00:10 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Mon Sep 11 16:00:10 2017 +0700 ---------------------------------------------------------------------- build/build.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/25e972fc/build/build.ps1 ---------------------------------------------------------------------- diff --git a/build/build.ps1 b/build/build.ps1 index b3d9568..0977f81 100644 --- a/build/build.ps1 +++ b/build/build.ps1 @@ -221,14 +221,15 @@ task Test -depends InstallSDK1IfRequired, InstallSDK2IfRequired, Restore -descri foreach ($testProject in $testProjects) { $testName = $testProject.Directory.Name - $testResultDirectory = "$test_results_directory\$framework\$testName" - Ensure-Directory-Exists $testResultDirectory # Special case - our CLI tool only supports .NET Core 2.0 - if ($testProject.Contains("Tests.Cli") -and ($framework -ne "netcoreapp2.0")) { + if ($testName.Contains("Tests.Cli") -and ($framework -ne "netcoreapp2.0")) { continue } + $testResultDirectory = "$test_results_directory\$framework\$testName" + Ensure-Directory-Exists $testResultDirectory + if ($framework.StartsWith("netcore")) { $testExpression = "dotnet.exe test '$testProject' --configuration $configuration --framework $framework --no-restore --no-build" $testExpression = "$testExpression --results-directory $testResultDirectory\TestResult.xml"
