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 2016/09/29 17:36:16 UTC
cordova-paramedic git commit: A quick fix for running tests locally
Repository: cordova-paramedic
Updated Branches:
refs/heads/master 91c906ff3 -> 859d02c7e
A quick fix for running tests locally
Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/859d02c7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/859d02c7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/859d02c7
Branch: refs/heads/master
Commit: 859d02c7ed67fbb350f8355a828782c09ac0a9ed
Parents: 91c906f
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Thu Sep 29 20:36:05 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Thu Sep 29 20:36:05 2016 +0300
----------------------------------------------------------------------
lib/paramedic.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/859d02c7/lib/paramedic.js
----------------------------------------------------------------------
diff --git a/lib/paramedic.js b/lib/paramedic.js
index fc7601b..fef99b2 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -246,7 +246,7 @@ ParamedicRunner.prototype.runLocalTests = function () {
return Q(util.TEST_PASSED);
}
- Q().then(function () {
+ return Q().then(function () {
return self.maybeRunFileTransferServer();
})
.then(function () {
@@ -434,7 +434,7 @@ ParamedicRunner.prototype.getCommandForBuilding = function () {
ParamedicRunner.prototype.shouldWaitForTestResult = function () {
var action = this.config.getAction();
- return action === 'run' || action === 'emulate';
+ return (action.indexOf('run') === 0) || (action.indexOf('emulate') === 0);
};
ParamedicRunner.prototype.waitForConnection = function () {
@@ -454,7 +454,7 @@ ParamedicRunner.prototype.waitForConnection = function () {
};
ParamedicRunner.prototype.cleanUpProject = function () {
- this.server.cleanUp();
+ this.server && this.server.cleanUp();
if (this.config.shouldCleanUpAfterRun()) {
logger.info('cordova-paramedic: Deleting the application: ' + this.tempFolder.name);
shell.popd();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org