Skip to content

Commit

Permalink
Do not consider app as temporary if relative app path is provided (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykola Mokhnach committed Dec 6, 2018
1 parent 41c9a5f commit 73bbe22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ class AndroidDriver extends BaseDriver {
if (this.opts.app) {
// find and copy, or download and unzip an app url or path
this.opts.app = await this.helpers.configureApp(this.opts.app, APP_EXTENSION);
this.opts.appIsTemp = caps.app !== this.opts.app; // did we make a temporary copy?
this.opts.appIsTemp = this.opts.app && await fs.exists(this.opts.app)
&& !await util.isSameDestination(caps.app, this.opts.app);
await this.checkAppPresent();
} else if (this.appOnDevice) {
// the app isn't an actual app file but rather something we want to
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"appium-adb": "^6.27.0",
"appium-base-driver": "^3.0.0",
"appium-chromedriver": "^4.8.0",
"appium-support": "^2.24.1",
"appium-support": "^2.25.0",
"asyncbox": "^2.0.4",
"bluebird": "^3.4.7",
"io.appium.settings": "^2.10.0",
Expand Down

0 comments on commit 73bbe22

Please sign in to comment.