[jbosstools-commits] JBoss Tools SVN: r44007 - trunk/tests/scripts/installation-updates/src/main/groovy.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Tue Sep 25 11:51:56 EDT 2012
Author: mickael_istria
Date: 2012-09-25 11:51:56 -0400 (Tue, 25 Sep 2012)
New Revision: 44007
Modified:
trunk/tests/scripts/installation-updates/src/main/groovy/testInstall.groovy
Log:
JBIDE-12717: Propagate errors
Modified: trunk/tests/scripts/installation-updates/src/main/groovy/testInstall.groovy
===================================================================
--- trunk/tests/scripts/installation-updates/src/main/groovy/testInstall.groovy 2012-09-25 15:31:53 UTC (rev 44006)
+++ trunk/tests/scripts/installation-updates/src/main/groovy/testInstall.groovy 2012-09-25 15:51:56 UTC (rev 44007)
@@ -56,13 +56,17 @@
"-consoleLog -debug");
proc.init();
int returnCode = proc.executeJava();
+ if (returnCode != 0) {
+ println("An error occured. Most probably because of wrong configuration of environment.");
+ System.exit(1);
+ }
output.eachLine { line ->
if (line.contains("Failures:")) {
if (line.contains("Failures: 0, Errors: 0")) {
return;
} else {
- println("Error while installing. Read " + report + " for details and see screenshots/")
+ println("Failed to install. Read " + report + " for details and see screenshots/")
}
}
}
More information about the jbosstools-commits
mailing list