test_script in powershell: how to exit when success or when fail
Hi
Using exit 0 from a PS script in the test_script seems to make the test/build failed as
11 runs, 0 fails
Command exited with code
echo failure
What is the proper command/way for exiting with succes /failure?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 17 Dec, 2015 06:57 PM
Try using
$host.setshouldexit(1)to fail with code 1.Though there is no way to terminate the build with success status.
zosrothko closed this discussion on 17 May, 2018 09:08 AM.