cucumber tests: invoke System.exit even if exception is thrown to avoid hanging

This commit is contained in:
nik
2015-08-20 17:18:42 +03:00
parent 6bd1088cb5
commit 38517f2d07
@@ -38,7 +38,13 @@ public class CucumberMain {
}
public static void main(String[] args) throws IOException {
int exitStatus = run(args, Thread.currentThread().getContextClassLoader());
int exitStatus;
try {
exitStatus = run(args, Thread.currentThread().getContextClassLoader());
}
catch (Throwable e) {
exitStatus = 1;
}
System.exit(exitStatus);
}