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/09/01 04:06:55 UTC
cordova-medic git commit: CB-8936 iOS logs gathering
Repository: cordova-medic
Updated Branches:
refs/heads/master 389ab64e2 -> 5e596ead9
CB-8936 iOS logs gathering
Project: http://git-wip-us.apache.org/repos/asf/cordova-medic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-medic/commit/5e596ead
Tree: http://git-wip-us.apache.org/repos/asf/cordova-medic/tree/5e596ead
Diff: http://git-wip-us.apache.org/repos/asf/cordova-medic/diff/5e596ead
Branch: refs/heads/master
Commit: 5e596ead971b2d5481a54ff46f20bcb4eb6533ed
Parents: 389ab64
Author: alsorokin <al...@akvelon.com>
Authored: Mon Aug 24 16:23:25 2015 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Fri Aug 28 16:47:00 2015 +0300
----------------------------------------------------------------------
buildbot-conf/cordova.conf | 7 ++++---
medic/medic-log.js | 21 ++++++++++++++++-----
2 files changed, 20 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/5e596ead/buildbot-conf/cordova.conf
----------------------------------------------------------------------
diff --git a/buildbot-conf/cordova.conf b/buildbot-conf/cordova.conf
index 72184cd..bccda76 100644
--- a/buildbot-conf/cordova.conf
+++ b/buildbot-conf/cordova.conf
@@ -360,9 +360,10 @@ def cordova_steps_run_tests(platform, extra_args=list()):
'log',
'--platform', platform
],
- description = 'gathering logs',
- timeout = LOG_GETTING_TIMEOUT,
- haltOnFailure = False,
+ description = 'gathering logs',
+ timeout = LOG_GETTING_TIMEOUT,
+ haltOnFailure = False,
+ flunkOnFailure = False,
),
SH(
http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/5e596ead/medic/medic-log.js
----------------------------------------------------------------------
diff --git a/medic/medic-log.js b/medic/medic-log.js
index 6b5a5d3..6f09ff2 100644
--- a/medic/medic-log.js
+++ b/medic/medic-log.js
@@ -25,7 +25,8 @@
var shelljs = require("shelljs");
var optimist = require("optimist");
-var fs = require('fs');
+var fs = require("fs");
+var path = require("path");
var util = require("../lib/util");
@@ -49,14 +50,24 @@ function logBlackberry() {
}
function logIOS() {
- return;
+ var logScriptpath = path.join("mobilespec", "platforms", "ios", "cordova", "console.log");
+ var command = "cat " + logScriptpath;
+
+ util.medicLog("running:");
+ util.medicLog(" " + command);
+
+ shelljs.exec(command, function (code, output) {
+ if (code > 0) {
+ util.fatal("Failed to run log command.");
+ }
+ });
}
function logWindows() {
- fs.readFile('./out.log', { encoding: util.DEFAULT_ENCODING }, function(err, log) {
+ fs.readFile("./out.log", { encoding: util.DEFAULT_ENCODING }, function(err, log) {
if (err) {
- if (err.toString().indexOf('ENOENT') > -1) {
- throw new Error('Couldn\'t find log file. It may be because of old cordova-windows version or some problems with log script.');
+ if (err.toString().indexOf("ENOENT") > -1) {
+ throw new Error("Couldn't find log file. It may be because of old cordova-windows version or some problems with log script.");
} else {
throw err;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org