You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2015/05/22 01:00:33 UTC
cordova-medic git commit: Running diagnostic steps even if test run
failed. Getting logs before getting test results. Decreasing log timeout.
Repository: cordova-medic
Updated Branches:
refs/heads/master 7ab35cc87 -> 778bc6aa3
Running diagnostic steps even if test run failed. Getting logs before getting test results. Decreasing log timeout.
Project: http://git-wip-us.apache.org/repos/asf/cordova-medic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-medic/commit/778bc6aa
Tree: http://git-wip-us.apache.org/repos/asf/cordova-medic/tree/778bc6aa
Diff: http://git-wip-us.apache.org/repos/asf/cordova-medic/diff/778bc6aa
Branch: refs/heads/master
Commit: 778bc6aa3b7fe3fef1a87886703b4951a4995f10
Parents: 7ab35cc
Author: Dmitry Blotsky <dm...@gmail.com>
Authored: Thu May 21 16:00:20 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Thu May 21 16:00:20 2015 -0700
----------------------------------------------------------------------
buildbot-conf/cordova.conf | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/778bc6aa/buildbot-conf/cordova.conf
----------------------------------------------------------------------
diff --git a/buildbot-conf/cordova.conf b/buildbot-conf/cordova.conf
index 797766d..b9bed59 100644
--- a/buildbot-conf/cordova.conf
+++ b/buildbot-conf/cordova.conf
@@ -43,6 +43,7 @@ NPM_TEMP_DIR = 'npm_tmp'
COUCHDB_URI = medic_config['couchdb']['uri']
ENTRY_POINT = medic_config['app']['entry']
TEST_RUN_TIMEOUT = medic_config['app']['timeout'] # in seconds
+LOG_GETTING_TIMEOUT = 30 # in seconds
TEST_SUMMARY_FILE_NAME = 'test_summary.json'
MASTER_HOSTNAME = socket.gethostname()
@@ -298,7 +299,7 @@ def cordova_steps_run_tests(platform, extra_args=list()):
Download(mastersrc=MEDIC_CONFIG_FILE, slavedest='cordova-medic/config.json', description='downloading master\'s config'),
SH(
- command=[
+ command = [
'node',
'cordova-medic/medic/medic.js',
'run',
@@ -314,29 +315,32 @@ def cordova_steps_run_tests(platform, extra_args=list()):
# the buildbot wrapper times out so it can exit cleanly on timeout
'--timeout', TEST_RUN_TIMEOUT - 60
] + extra_args,
- description='running tests'
+ description = 'running tests',
+ haltOnFailure = False,
),
SH(
- command=[
+ command = [
'node',
'cordova-medic/medic/medic.js',
- 'check',
- '--id', P('build_id'),
- '--couchdb', COUCHDB_URI,
- '--file', P('test_summary_file'),
+ 'log',
+ '--platform', platform
],
- description='getting test results'
+ description = 'gathering logs',
+ timeout = LOG_GETTING_TIMEOUT,
+ haltOnFailure = False,
),
SH(
- command=[
+ command = [
'node',
'cordova-medic/medic/medic.js',
- 'log',
- '--platform', platform
+ 'check',
+ '--id', P('build_id'),
+ '--couchdb', COUCHDB_URI,
+ '--file', P('test_summary_file'),
],
- description='gathering logs'
+ description = 'getting test results'
),
SetPropertyFromCommand(command=['cat', P('test_summary_file')], property='test_summary', hideStepIf=True),
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org