From a48abd0b6c8b0ec0008598232f27e4901e3fb2f4 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Mon, 25 Apr 2016 14:11:13 -0700 Subject: [PATCH] Fix xUnit tests for new framework This also enables us to run them on OS X (though they will fail). --- PowerShellGitHubDev.psm1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PowerShellGitHubDev.psm1 b/PowerShellGitHubDev.psm1 index cd553dc69c..43d3aa37dd 100644 --- a/PowerShellGitHubDev.psm1 +++ b/PowerShellGitHubDev.psm1 @@ -321,9 +321,12 @@ function Start-PSxUnit { $Arguments = "--configuration", "Linux" try { Push-Location $PSScriptRoot/test/csharp + # Path manipulation to obtain test project output directory + $Output = Join-Path $pwd ((Split-Path -Parent (Get-PSOutput)) -replace (New-PSOptions).Top) + Write-Host "Output is $Output" Start-NativeExecution { dotnet build $Arguments } - Copy-Item -ErrorAction SilentlyContinue -Recurse -Path $Content/* -Include Modules,libpsl-native* -Destination "./bin/Linux/netcoreapp1.0/ubuntu.14.04-x64" + Copy-Item -ErrorAction SilentlyContinue -Recurse -Path $Content/* -Include Modules,libpsl-native* -Destination $Output Start-NativeExecution { dotnet test $Arguments } if ($LASTEXITCODE -ne 0) {