You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/12/06 04:23:52 UTC

git commit: Fixes to e2e tests: args[0] bug, corodva -> cordova

Updated Branches:
  refs/heads/master 3e143be07 -> 7b8c1563b


Fixes to e2e tests: args[0] bug, corodva -> cordova


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

Branch: refs/heads/master
Commit: 7b8c1563b460703bcaf7c3b57d86bee4e8b8ca6d
Parents: 3e143be
Author: lms <ra...@riseup.net>
Authored: Tue Nov 19 12:44:02 2013 +0100
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Dec 5 22:23:22 2013 -0500

----------------------------------------------------------------------
 e2e/fixtures/platforms/android/cordova/lib/build.js | 4 ++--
 e2e/fixtures/platforms/android/cordova/lib/clean.js | 4 ++--
 e2e/fixtures/platforms/android/cordova/lib/log.js   | 4 ++--
 e2e/fixtures/platforms/android/cordova/lib/run.js   | 7 ++++---
 4 files changed, 10 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/7b8c1563/e2e/fixtures/platforms/android/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/e2e/fixtures/platforms/android/cordova/lib/build.js b/e2e/fixtures/platforms/android/cordova/lib/build.js
index 84e4e02..7bc33ca 100755
--- a/e2e/fixtures/platforms/android/cordova/lib/build.js
+++ b/e2e/fixtures/platforms/android/cordova/lib/build.js
@@ -80,10 +80,10 @@ module.exports.get_apk = function() {
 }
 
 module.exports.help = function() {
-    console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'corodva', 'build')) + ' [build_type]');
+    console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'cordova', 'build')) + ' [build_type]');
     console.log('Build Types : ');
     console.log('    \'--debug\': Default build, will build project in using ant debug');
     console.log('    \'--release\': will build project using ant release');
     console.log('    \'--nobuild\': will skip build process (can be used with run command)');
     process.exit(0);
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/7b8c1563/e2e/fixtures/platforms/android/cordova/lib/clean.js
----------------------------------------------------------------------
diff --git a/e2e/fixtures/platforms/android/cordova/lib/clean.js b/e2e/fixtures/platforms/android/cordova/lib/clean.js
index 579a5fa..8f14015 100755
--- a/e2e/fixtures/platforms/android/cordova/lib/clean.js
+++ b/e2e/fixtures/platforms/android/cordova/lib/clean.js
@@ -37,7 +37,7 @@ module.exports.run = function() {
 }
 
 module.exports.help = function() {
-    console.log('Usage: ' + path.relative(process.cwd(), process.argv[1]));
+    console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'cordova', 'clean')));
     console.log('Cleans the project directory.');
     process.exit(0);
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/7b8c1563/e2e/fixtures/platforms/android/cordova/lib/log.js
----------------------------------------------------------------------
diff --git a/e2e/fixtures/platforms/android/cordova/lib/log.js b/e2e/fixtures/platforms/android/cordova/lib/log.js
index ff14e46..b85cf60 100755
--- a/e2e/fixtures/platforms/android/cordova/lib/log.js
+++ b/e2e/fixtures/platforms/android/cordova/lib/log.js
@@ -37,7 +37,7 @@ module.exports.run = function() {
 }
 
 module.exports.help = function() {
-    console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'corodva', 'log')));
+    console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'cordova', 'log')));
     console.log('Gives the logcat output on the command line.');
     process.exit(0);
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/7b8c1563/e2e/fixtures/platforms/android/cordova/lib/run.js
----------------------------------------------------------------------
diff --git a/e2e/fixtures/platforms/android/cordova/lib/run.js b/e2e/fixtures/platforms/android/cordova/lib/run.js
index b1c8b2b..787d123 100755
--- a/e2e/fixtures/platforms/android/cordova/lib/run.js
+++ b/e2e/fixtures/platforms/android/cordova/lib/run.js
@@ -22,7 +22,8 @@
 var path  = require('path'),
     build = require('./build'),
     emulator = require('./emulator'),
-    device   = require('./device');
+    device   = require('./device'),
+    ROOT = path.join(__dirname, '..', '..');
 
 /*
  * Runs the application on a device if availible.
@@ -110,7 +111,7 @@ var path  = require('path'),
 }
 
 module.exports.help = function() {
-    console.log('Usage: ' + path.relative(process.cwd(), args[0]) + ' [options]');
+    console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'cordova', 'run')) + ' [options]');
     console.log('Build options :');
     console.log('    --debug : Builds project in debug mode');
     console.log('    --release : Builds project in release mode');
@@ -120,4 +121,4 @@ module.exports.help = function() {
     console.log('    --emulator : Will deploy the built project to an emulator if one exists');
     console.log('    --target=<target_id> : Installs to the target with the specified id.');
     process.exit(0);
-}
\ No newline at end of file
+}