You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by al...@apache.org on 2017/07/03 11:26:14 UTC
cordova-paramedic git commit: Spam dots when connecting webdriver to
avoid 'no output' termination
Repository: cordova-paramedic
Updated Branches:
refs/heads/master 9613dfa50 -> f7495e6bd
Spam dots when connecting webdriver to avoid 'no output' termination
Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/f7495e6b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/f7495e6b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/f7495e6b
Branch: refs/heads/master
Commit: f7495e6bddb4ce9be25436f8724ce8d72a4374c7
Parents: 9613dfa
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Mon Jul 3 14:26:08 2017 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Mon Jul 3 14:26:08 2017 +0300
----------------------------------------------------------------------
lib/paramedic.js | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/f7495e6b/lib/paramedic.js
----------------------------------------------------------------------
diff --git a/lib/paramedic.js b/lib/paramedic.js
index 8698e11..732a48b 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -782,6 +782,9 @@ ParamedicRunner.prototype.connectWebdriver = function () {
var caps = this.getSauceCaps();
logger.normal('cordova-paramedic: connecting webdriver');
+ var spamDots = setInterval(function () {
+ process.stdout.write('.');
+ }, 1000);
wd.configureHttp({
timeout: util.WD_TIMEOUT,
@@ -790,7 +793,16 @@ ParamedicRunner.prototype.connectWebdriver = function () {
});
var driver = wd.promiseChainRemote(util.SAUCE_HOST, util.SAUCE_PORT, user, key);
- return driver.init(caps);
+ return driver
+ .init(caps)
+ .then(function () {
+ clearInterval(spamDots);
+ process.stdout.write('\n');
+ }, function (error) {
+ clearInterval(spamDots);
+ process.stdout.write('\n');
+ throw(error);
+ });
};
ParamedicRunner.prototype.runSauceTests = function () {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org