cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [3/3] cordova-lib git commit: Fix create spec sometimes failing because it's deleted its own tmp directory
Date Fri, 09 Jan 2015 20:54:05 GMT
Fix create spec sometimes failing because it's deleted its own tmp directory


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

Branch: refs/heads/master
Commit: eba4f328c2c671b8dd22906e9f7d21713e798753
Parents: a78aea1
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Jan 9 15:39:38 2015 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Jan 9 15:47:43 2015 -0500

----------------------------------------------------------------------
 cordova-lib/spec-cordova/create.spec.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/eba4f328/cordova-lib/spec-cordova/create.spec.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/create.spec.js b/cordova-lib/spec-cordova/create.spec.js
index 5e58494..a05a08c 100644
--- a/cordova-lib/spec-cordova/create.spec.js
+++ b/cordova-lib/spec-cordova/create.spec.js
@@ -89,6 +89,7 @@ describe('create end-to-end', function() {
 
     beforeEach(function() {
         shell.rm('-rf', project);
+        shell.mkdir('-p', tmpDir);
     });
     afterEach(function() {
         process.chdir(path.join(__dirname, '..'));  // Needed to rm the dir on Windows.
@@ -127,7 +128,7 @@ describe('create end-to-end', function() {
         })
         .then(checkProject)
         .fail(function(err) {
-            console.log(err);
+            console.log(err && err.stack);
             expect(err).toBeUndefined();
         })
         .fin(done);
@@ -146,6 +147,9 @@ describe('create end-to-end', function() {
                 // Allow symlink error if not in admin mode
                 expect(err.message).toBe("Symlinks on Windows require Administrator privileges");
             } else {
+                if (err) {
+                    console.log(err.stack);
+                }
                 expect(err).toBeUndefined();
             }
         })


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


Mime
View raw message