Repository: cordova-paramedic Updated Branches: refs/heads/master 615e8cac3 -> 3ede89b8e
CB-11568 Run Appium tests from any directory Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/3ede89b8 Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/3ede89b8 Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/3ede89b8 Branch: refs/heads/master Commit: 3ede89b8e295d59b5290863330f5149f8542eb81 Parents: 615e8ca Author: Alexander Sorokin <alexander.soro...@akvelon.com> Authored: Wed Jul 13 13:32:26 2016 +0300 Committer: Alexander Sorokin <alexander.soro...@akvelon.com> Committed: Wed Jul 13 13:32:26 2016 +0300 ---------------------------------------------------------------------- lib/appium/AppiumRunner.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/3ede89b8/lib/appium/AppiumRunner.js ---------------------------------------------------------------------- diff --git a/lib/appium/AppiumRunner.js b/lib/appium/AppiumRunner.js index d126dd7..ee81c41 100644 --- a/lib/appium/AppiumRunner.js +++ b/lib/appium/AppiumRunner.js @@ -56,7 +56,7 @@ function AppiumRunner(options) { } function getAppiumServerPath() { - return path.resolve(process.cwd(), 'cordova-paramedic/node_modules/appium/build/lib/main.js'); + return path.resolve(__dirname, '../../node_modules/appium/build/lib/main.js'); } function getFullAppPath(appPath) { @@ -199,8 +199,9 @@ function killProcess(procObj, killSignal, callback) { } function installAppiumServer() { - logger.normal('paramedic-appium: Installing Appium server...'); - shell.pushd(path.join(__dirname, '../..')); + var installPath = path.join(__dirname, '../..'); + logger.normal('paramedic-appium: Installing Appium server to ' + installPath); + shell.pushd(installPath); return execPromise('npm install appium').then(function () { shell.popd(); }); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org