tag:help.appveyor.com,2012-11-13:/discussions/questions/1981-test_script-in-powershell-how-to-exit-when-success-or-when-failAppVeyor: Discussion 2018-05-17T09:08:48Ztag:help.appveyor.com,2012-11-13:Comment/387247032015-12-17T18:57:45Z2015-12-17T18:57:45Ztest_script in powershell: how to exit when success or when fail<div><p>Try using <code>$host.setshouldexit(1)</code> to fail with code
1.</p>
<p>Though there is no way to terminate the build with success
status.</p></div>Feodor Fitsner