testng: ensure exit (IDEA-193024)

This commit is contained in:
Anna Kozlova
2018-06-04 20:02:48 +03:00
parent a29e818477
commit a9d7b3fdd2
@@ -70,15 +70,16 @@ public class IDEARemoteTestNG extends TestNG {
attachListeners(new IDEATestNGRemoteListener());
super.run();
System.exit(0);
}
else {
System.out.println("##teamcity[enteredTheMatrix]");
System.err.println("Nothing found to run");
}
System.exit(0);
}
catch(Throwable cause) {
cause.printStackTrace(System.err);
System.exit(-1);
}
}