summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2011-10-27 09:52:51 +0000
committerLeif Åstrand <leif@vaadin.com>2011-10-27 09:52:51 +0000
commit0cd52aea2c9637d0ed71c857f43c548af89e038f (patch)
tree30ae39a5448353532082628d971151aabecff7a8 /tests
parentb95d72bb1ffbeda43f36445571ceb02c73ad8e49 (diff)
downloadvaadin-framework-0cd52aea2c9637d0ed71c857f43c548af89e038f.tar.gz
vaadin-framework-0cd52aea2c9637d0ed71c857f43c548af89e038f.zip
Added output of some debug information
svn changeset:21813/svn branch:6.7
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_base_files/base.xml2
-rw-r--r--tests/integration_tests.xml12
2 files changed, 12 insertions, 2 deletions
diff --git a/tests/integration_base_files/base.xml b/tests/integration_base_files/base.xml
index 995c3b5bbf..f9c2ff3d6b 100644
--- a/tests/integration_base_files/base.xml
+++ b/tests/integration_base_files/base.xml
@@ -58,6 +58,8 @@
<waitfor maxwait="${waitMinutes}" maxwaitunit="minute" checkevery="10000" timeoutproperty="timeout">
<http url="${waitUrl}" />
</waitfor>
+ <!-- Print load averages to get an indicator on whether the server still attempts to start up -->
+ <exec executable="uptime" />
<fail if="timeout" message="${server} failed to deploy" />
<echo message="${server}: Demo deployed successfully." />
diff --git a/tests/integration_tests.xml b/tests/integration_tests.xml
index acf5c1e703..834c5fe608 100644
--- a/tests/integration_tests.xml
+++ b/tests/integration_tests.xml
@@ -364,11 +364,19 @@
<scp file="${demo.war}" todir="${user}@${target-host}:demo.war" keyfile="${sshkey.file}" trust="yes" passphrase="${passphrase}" />
<!-- timeout in 15 minutes -->
- <sshexec host="${target-host}" outputproperty="start-output" timeout="900000" username="${user}" keyfile="${sshkey.file}" trust="yes" command="ant -f deploy.xml startup-and-deploy" />
+ <sshexec host="${target-host}" outputproperty="start-output" timeout="900000" username="${user}" keyfile="${sshkey.file}" trust="yes" command="ant -f deploy.xml startup-and-deploy" failonerror="false" />
<antcall target="echo-prefix">
<param name="prefix" value="${target-server}: " />
<param name="message" value="${start-output}" />
</antcall>
+
+ <fail message="${start-output}">
+ <condition>
+ <not>
+ <contains string="${start-output}" substring="Demo deployed successfully" />
+ </not>
+ </condition>
+ </fail>
<copy file="integration-testscripts/common/integration_test.tpl" tofile="integration-testscripts/integration-test-${target-server}-servlet.html" overwrite="true" />
<antcall target="integration-test-servlet">
@@ -392,7 +400,7 @@
</catch>
<finally>
<!-- timeout in five minutes -->
- <sshexec host="${target-host}" outputproperty="stop-output" timeout="300000" username="${user}" keyfile="${sshkey.file}" trust="yes" command="ant -f deploy.xml shutdown-and-cleanup" />
+ <sshexec host="${target-host}" outputproperty="stop-output" timeout="300000" username="${user}" keyfile="${sshkey.file}" trust="yes" command="ant -f deploy.xml shutdown-and-cleanup" failonerror="false" />
<antcall target="echo-prefix">
<param name="prefix" value="${target-server}: " />
<param name="message" value="${stop-output}" />