mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Move and "publish" EchoArgs for the tests
* Move EchoArgs from test/EchoArgs to test/tools/EchoArgs * Use "dotnet publish" for building EchoArgs in build.psm1 so the test can call it directly
This commit is contained in:
1 parent
7816516c24
commit
7e8070276f
5 files changed
+20
-16
No files matched your search
+16
@@ -547,6 +547,20 @@ function Get-PesterTag {
|
||||
$o
|
||||
}
|
||||
|
||||
function Publish-EchoArgs {
|
||||
[CmdletBinding()]
|
||||
param()
|
||||
|
||||
Find-Dotnet
|
||||
|
||||
Push-Location "$PSScriptRoot/test/tools/EchoArgs"
|
||||
try {
|
||||
dotnet publish --output run
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
}
|
||||
|
||||
function Start-PSPester {
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
@@ -563,6 +577,8 @@ function Start-PSPester {
|
||||
)
|
||||
|
||||
Write-Verbose "Running pester tests at '$path' with tag '$($Tag -join ''', ''')' and ExcludeTag '$($ExcludeTag -join ''', ''')'" -Verbose
|
||||
# Publish EchoArgs so it can be run by tests
|
||||
Publish-EchoArgs
|
||||
# All concatenated commands/arguments are suffixed with the delimiter (space)
|
||||
$Command = ""
|
||||
|
||||
|
||||
Reference in new issue
Block a user