{"action":"closed","issue":{"url":"https://api.github.com/repos/Genymobile/genymotion-gradle-plugin/issues/10","labels_url":"https://api.github.com/repos/Genymobile/genymotion-gradle-plugin/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Genymobile/genymotion-gradle-plugin/issues/10/comments","events_url":"https://api.github.com/repos/Genymobile/genymotion-gradle-plugin/issues/10/events","html_url":"https://github.com/Genymobile/genymotion-gradle-plugin/issues/10","id":117461760,"number":10,"title":"Delete sdcard directory before running tests","user":{"login":"ScottBishop","id":1944329,"avatar_url":"https://avatars.githubusercontent.com/u/1944329?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottBishop","html_url":"https://github.com/ScottBishop","followers_url":"https://api.github.com/users/ScottBishop/followers","following_url":"https://api.github.com/users/ScottBishop/following{/other_user}","gists_url":"https://api.github.com/users/ScottBishop/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottBishop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottBishop/subscriptions","organizations_url":"https://api.github.com/users/ScottBishop/orgs","repos_url":"https://api.github.com/users/ScottBishop/repos","events_url":"https://api.github.com/users/ScottBishop/events{/privacy}","received_events_url":"https://api.github.com/users/ScottBishop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Genymobile/genymotion-gradle-plugin/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-17T22:04:31Z","updated_at":"2015-11-19T20:07:43Z","closed_at":"2015-11-19T20:07:43Z","body":"Hi there, I am using this plugin to run tests on a few build machine. During the tests we are storing images on the sdcard and then copying them to a server. \r\n\r\nThe problem we are having is that if a emulator crashes during running our tests, we are not able to delete the images off the device (considering it is not running anymore). Then the next time that emulator is started for tests, there are still images on the sdcard that are unwanted images -- they will skew the test results. \r\n\r\nWe want to add a `deleteImages` task that runs after the emulator is started but before tests are run. There doesn't seem like an easy way to do that. Any help would be much appreciated."}}