mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Merge pull request #628 from PowerShell/osx-ping
Fix Start-Process tests
This commit is contained in:
commit
299ee6af2e
1 file changed
+4
-6
@@ -3,13 +3,11 @@ Describe "Start-Process" {
|
||||
$pingDirectory = Split-Path $pingCommand -Parent
|
||||
$tempFile = Join-Path -Path $TestDrive -ChildPath PSTest
|
||||
$assetsFile = Join-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath assets) -ChildPath SortTest.txt
|
||||
if ($IsWindows)
|
||||
{
|
||||
$pingParam = "localhost -n 4"
|
||||
if ($IsWindows) {
|
||||
$pingParam = "-n 2 localhost"
|
||||
}
|
||||
else
|
||||
{
|
||||
$pingParam = "localhost -c 4"
|
||||
elseif ($IsLinux -Or $IsOSX) {
|
||||
$pingParam = "-c 2 localhost"
|
||||
}
|
||||
|
||||
It "Should process arguments without error" {
|
||||
|
||||
Reference in new issue
Block a user