mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Skip complex prompting tests
Not supported with non-PSReadLine Open PowerShell host.
This commit is contained in:
1 parent
8c97fd16cd
commit
6d7b6a10f6
1 file changed
+3
-3
@@ -107,7 +107,7 @@ Describe "ConsoleHost unit tests" {
|
|||||||
EnsureChildHasExited $process
|
EnsureChildHasExited $process
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Redirected input explicit prompting" {
|
It "Redirected input explicit prompting" -Skip:$IsCore {
|
||||||
$si = NewProcessStartInfo "-noprofile -File -" -RedirectStdIn
|
$si = NewProcessStartInfo "-noprofile -File -" -RedirectStdIn
|
||||||
$process = RunPowerShell $si
|
$process = RunPowerShell $si
|
||||||
$process.StandardInput.Write("`$function:prompt = { 'PS> ' }`n")
|
$process.StandardInput.Write("`$function:prompt = { 'PS> ' }`n")
|
||||||
@@ -120,7 +120,7 @@ Describe "ConsoleHost unit tests" {
|
|||||||
EnsureChildHasExited $process
|
EnsureChildHasExited $process
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Redirected input no prompting" {
|
It "Redirected input no prompting" -Skip:$IsCore {
|
||||||
$si = NewProcessStartInfo "-noprofile -" -RedirectStdIn
|
$si = NewProcessStartInfo "-noprofile -" -RedirectStdIn
|
||||||
$process = RunPowerShell $si
|
$process = RunPowerShell $si
|
||||||
$process.StandardInput.Write("1+1`n")
|
$process.StandardInput.Write("1+1`n")
|
||||||
@@ -129,7 +129,7 @@ Describe "ConsoleHost unit tests" {
|
|||||||
EnsureChildHasExited $process
|
EnsureChildHasExited $process
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Redirected input w/ nested prompt" {
|
It "Redirected input w/ nested prompt" -Skip:$IsCore {
|
||||||
$si = NewProcessStartInfo "-noprofile ""`$function:prompt = { 'PS' + ('>'*(`$nestedPromptLevel+1)) + ' ' }""" -RedirectStdIn
|
$si = NewProcessStartInfo "-noprofile ""`$function:prompt = { 'PS' + ('>'*(`$nestedPromptLevel+1)) + ' ' }""" -RedirectStdIn
|
||||||
$process = RunPowerShell $si
|
$process = RunPowerShell $si
|
||||||
$process.StandardInput.Write("`$host.EnterNestedPrompt()`n")
|
$process.StandardInput.Write("`$host.EnterNestedPrompt()`n")
|
||||||
|
|||||||
Reference in new issue
Block a user