Bug 1721797 - [geckodriver] Remove test root folder when AndroidHandler gets dropped. r=webdriver-reviewers,jgraham

Differential Revision: https://phabricator.services.mozilla.com/D120614
This commit is contained in:
Henrik Skupin 2021-07-22 19:20:02 +00:00
Родитель 3a5223c7a1
Коммит 2fab354277
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -126,6 +126,11 @@ impl Drop for AndroidHandler {
Err(e) => error!("Failed deleting GeckoView configuration file: {}", e),
}
match self.process.device.remove(&self.test_root) {
Ok(_) => debug!("Deleted test root folder: {}", &self.test_root.display()),
Err(e) => error!("Failed deleting test root folder: {}", e),
}
match self.process.device.kill_forward_port(self.host_port) {
Ok(_) => debug!(
"Android port forward ({} -> {}) stopped",