You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It 'STDERR captured when calling resource directly with invalid args' {
47
-
$json= runcommandonset set -e pwsh -a "echo hello world"2>$TestDrive/output.txt
47
+
$json= runcommandonset --trace-level trace --trace-format plaintext set -e pwsh -a "echo hello world"2>$TestDrive/output.txt
48
48
$stdout=$json|ConvertFrom-Json
49
49
$stdout.exitCode| Should -Be 64
50
-
$expected="Stderr: The argument 'echo hello world' is not recognized as the name of a script file. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
51
-
$stderr=Get-Content-Path $TestDrive/output.txt
52
-
$stderr| Should -Contain$expected
50
+
$expected="*Stderr: The argument 'echo hello world' is not recognized as the name of a script file. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.*"
0 commit comments