-
Hi Folks, Any thoughts or similar experiences? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Hi @mikedombo, Thank you for being here! Thanks |
Beta Was this translation helpful? Give feedback.
-
This is the end of the output that we get. Just before this output is the beginning of our test run output, we’d expect many many more lines, so powershell is definitely hiding some output. Our tests fail, which is fine, so that’s why powershell shows the exit code of 1.
Sorry, but I cannot share the repository with you. I’ll see if I can get an example that has the same issue. EDIT: |
Beta Was this translation helpful? Give feedback.
-
Hi @mikedombo, Thanks for your reply! Thanks. |
Beta Was this translation helpful? Give feedback.
-
Sorry, but that’s not correct. Exiting with a failure is correct because the build failed. The timeline is We should have tons of logs, the same that we get on Linux, during the 10 minutes of testing. However, nothing shows up until the error message that it exited non-zero, which again is expected. Running the same command in powershell on the same host works as expected and we get all the standard output |
Beta Was this translation helpful? Give feedback.
-
Hi @mikedombo, The runner prepends Thanks. |
Beta Was this translation helpful? Give feedback.
-
Adding
|
Beta Was this translation helpful? Give feedback.
-
The answer is related to There are some weird ways to disable this behavior on powershell, but I think the best solution for us is to just fallback to cmd instead of powershell. |
Beta Was this translation helpful? Give feedback.
The answer is related to
$erroractionpreference
. It would seem that Powershell is reading our stderr and, when it sees the first line from that it throws theNativeCommandError
, then it stops outputting all of our stdout and stderr. The command continue to execute all the tests, but eventually fails.There are some weird ways to disable this behavior on powershell, but I think the best solution for us is to just fallback to cmd instead of powershell.