cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [44/50] cordova-paramedic git commit: honor timeout even when justbuild is specified. This closes #25
Date Fri, 04 Mar 2016 00:36:22 GMT
honor timeout even when justbuild is specified. This closes #25


Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/de183052
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/de183052
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/de183052

Branch: refs/heads/master
Commit: de183052d992e13f57133c856d74476d057637d7
Parents: 09cb6ac
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Apr 15 13:23:33 2015 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Apr 15 13:23:33 2015 -0700

----------------------------------------------------------------------
 paramedic.js | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/de183052/paramedic.js
----------------------------------------------------------------------
diff --git a/paramedic.js b/paramedic.js
index 69a659d..ad9d787 100644
--- a/paramedic.js
+++ b/paramedic.js
@@ -45,6 +45,14 @@ ParamedicRunner.prototype = {
             // this would be fatal
             process.exit(cordovaResult.code);
         }
+
+        // limit runtime to TIMEOUT msecs
+        var self = this;
+        setTimeout(function(){
+            self.logMessage("This test seems to be blocked :: timeout exceeded. Exiting ...");
+            self.cleanUpAndExitWithCode(1);
+        },self.timeout);
+
         this.createTempProject();
         this.installPlugins();
         this.startServer();
@@ -228,11 +236,6 @@ ParamedicRunner.prototype = {
             self.logMessage("cordova-paramedic: adding platform");
             shell.exec('cordova platform add ' + self.platformId,{silent:true});
             shell.exec('cordova prepare',{silent:true});
-            // limit runtime to TIMEOUT msecs
-            setTimeout(function(){
-                self.logMessage("This test seems to be blocked :: timeout exceeded. Exiting
...");
-                self.cleanUpAndExitWithCode(1);
-            },self.timeout);
 
             shell.exec('cordova emulate ' + self.platformId.split("@")[0] + " --phone",
                 {async:true,silent:true},


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message