mirror of
https://github.com/appium/appium.git
synced 2026-10-25 18:21:19 +08:00
Make sure the app is not cleaned up if relative path is provided (#289)
This commit is contained in:
@@ -173,9 +173,9 @@ async function configureApp (app, supportedAppExtensions) {
|
||||
logger.info(`Unzipped local app to '${newApp}'`);
|
||||
} else if (!path.isAbsolute(newApp)) {
|
||||
newApp = path.resolve(process.cwd(), newApp);
|
||||
logger.warn(`The current application path '${app}' is relative, ` +
|
||||
`which might cause further issues. The path has been rewritten to '${newApp}' ` +
|
||||
`in order to avoid them`);
|
||||
logger.warn(`The current application path '${app}' is not absolute ` +
|
||||
`and has been rewritten to '${newApp}'. Consider using absolute paths rather than relative`);
|
||||
app = newApp;
|
||||
}
|
||||
|
||||
verifyAppExtension(newApp, supportedAppExtensions);
|
||||
|
||||
Reference in New Issue
Block a user