Skip complex prompting tests

Not supported with non-PSReadLine Open PowerShell host.
This commit is contained in:
Andrew Schwartzmeyer committed 2016-05-17 13:28:44 -07:00
1 parent 8c97fd16cd
commit 6d7b6a10f6
1 file changed
+3 -3
+3 -3
View File
@@ -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")