test_script in powershell: how to exit when success or when fail

zosrothko's Avatar

zosrothko

17 Dec, 2015 01:16 PM

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?

  1. Support Staff 1 Posted by Feodor Fitsner on 17 Dec, 2015 06:57 PM

    Feodor Fitsner's Avatar

    Try using $host.setshouldexit(1) to fail with code 1.

    Though there is no way to terminate the build with success status.

  2. zosrothko closed this discussion on 17 May, 2018 09:08 AM.

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