mirror of
https://github.com/appium/appium.git
synced 2026-02-20 01:29:36 -06:00
Make fullReset clear app on session stop as well
This commit is contained in:
@@ -318,6 +318,18 @@ Android.prototype.requestXmlCompression = function (cb) {
|
||||
|
||||
Android.prototype.stop = function (cb) {
|
||||
this.shuttingDown = true;
|
||||
|
||||
if (this.opts.fullReset) {
|
||||
logger.info("Removing app from device");
|
||||
this.uninstallApp(function (err) {
|
||||
if (err) {
|
||||
// simply warn on error here, because we don't want to stop the shutdown
|
||||
// process
|
||||
logger.warn(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (this.adb) {
|
||||
this.adb.goToHome(function () {
|
||||
this.shutdown(cb);
|
||||
|
||||
Reference in New Issue
Block a user