{"action":"created","issue":{"url":"https://api.github.com/repos/square/spoon/issues/251","labels_url":"https://api.github.com/repos/square/spoon/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/square/spoon/issues/251/comments","events_url":"https://api.github.com/repos/square/spoon/issues/251/events","html_url":"https://github.com/square/spoon/issues/251","id":64145617,"number":251,"title":"SpoonRunner hangs at execution end and no log file reports","user":{"login":"RichardGuion","id":4001013,"avatar_url":"https://avatars.githubusercontent.com/u/4001013?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardGuion","html_url":"https://github.com/RichardGuion","followers_url":"https://api.github.com/users/RichardGuion/followers","following_url":"https://api.github.com/users/RichardGuion/following{/other_user}","gists_url":"https://api.github.com/users/RichardGuion/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardGuion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardGuion/subscriptions","organizations_url":"https://api.github.com/users/RichardGuion/orgs","repos_url":"https://api.github.com/users/RichardGuion/repos","events_url":"https://api.github.com/users/RichardGuion/events{/privacy}","received_events_url":"https://api.github.com/users/RichardGuion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/square/spoon/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-03-25T01:41:58Z","updated_at":"2015-04-27T16:18:30Z","closed_at":null,"body":"I synced up to master and built spoon-runner jar locally (spoon-runner-1.1.9).\r\n\r\njava -jar ../libs/spoon-runner-1.1.9-SNAPSHOT-jar-with-dependencies.jar --no-animations  --apk ./app/build/outputs/apk/evernote-allArch-evernote-instrumentation-unaligned.apk --test-apk ./app/build/outputs/apk/evernote-allArch-evernote-debug-test-unaligned.apk --class-name com.evernote.test.smoketests.EspressoTests --method-name testSignInSignOut_FreeUser --debug --output /Users/rguion/dev/reports/EspressoTests_testSignInSignOut_FreeUser\r\n\r\ndebug output:\r\n\r\n2015-03-24 18:39:04 [SDR.run] About to actually run tests for [T065001D7F]\r\n06:39:04 I/RemoteAndroidTest: Running am instrument -w -r  -e class com.evernote.test.smoketests.EspressoTests#testSignInSignOut_FreeUser com.evernote.test/android.support.test.runner.AndroidJUnitRunner on motorola-xt1053-T065001D7F\r\n2015-03-24 18:39:05 [STRL.testRunStarted] testCount=1 runName=com.evernote.test\r\n2015-03-24 18:39:05 [STRL.testStarted] test=com.evernote.test.smoketests.EspressoTests#testSignInSignOut_FreeUser\r\n2015-03-24 18:39:44 [STRL.testEnded] test=com.evernote.test.smoketests.EspressoTests#testSignInSignOut_FreeUser\r\n2015-03-24 18:39:44 [STRL.testRunEnded] elapsedTime=38685\r\n06:39:44 I/XmlResultReporter: XML test result file generated at /Users/rguion/dev/android/./tests/reports/EspressoTests_testSignInSignOut_FreeUser/junit-reports/T065001D7F.xml. Total tests 1, passed 1,\r\n2015-03-24 18:39:44 [SDR.run] About to grab screenshots and prepare output for [T065001D7F]\r\n2015-03-24 18:39:44 [SDR.pullScreenshotsFromDevice] Internal path is /data/data/com.evernote/app_spoon-screenshots\r\n2015-03-24 18:39:45 [SDR.pullScreenshotsFromDevice] External path is /storage/emulated/legacy/app_spoon-screenshots\r\n2015-03-24 18:39:45 [SDR.pullScreenshotsFromDevice] Pulling screenshots from [T065001D7F]\r\n2015-03-24 18:39:45 [SR.runTests] [T065001D7F] Execution done.\r\n\r\nIt just hangs. I have tried to debug it but cannot determine the problem.  No one else has seen this yet?"},"comment":{"url":"https://api.github.com/repos/square/spoon/issues/comments/96729379","html_url":"https://github.com/square/spoon/issues/251#issuecomment-96729379","issue_url":"https://api.github.com/repos/square/spoon/issues/251","id":96729379,"user":{"login":"roman-mazur","id":307707,"avatar_url":"https://avatars.githubusercontent.com/u/307707?v=3","gravatar_id":"","url":"https://api.github.com/users/roman-mazur","html_url":"https://github.com/roman-mazur","followers_url":"https://api.github.com/users/roman-mazur/followers","following_url":"https://api.github.com/users/roman-mazur/following{/other_user}","gists_url":"https://api.github.com/users/roman-mazur/gists{/gist_id}","starred_url":"https://api.github.com/users/roman-mazur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roman-mazur/subscriptions","organizations_url":"https://api.github.com/users/roman-mazur/orgs","repos_url":"https://api.github.com/users/roman-mazur/repos","events_url":"https://api.github.com/users/roman-mazur/events{/privacy}","received_events_url":"https://api.github.com/users/roman-mazur/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T16:18:30Z","updated_at":"2015-04-27T16:18:30Z","body":"@pokornyr I have not submitted a PR. I pushed that commit to my repo.\r\nThe issue is that if you call `terminate()` and then create a new bridge, the new bridge fails to work.\r\nAnd this is what happens if you run spoon tests for different flavors with Gradle :(\r\n\r\nHence, I decided to make this `terminate()` call optional and opt it out when `SpoonRunner` is used by gradle plugin. I'm feeling gross and bad about this approach but it's the only working approach I can imagine for now.\r\n\r\nBut I have not done it yet. Will try to submit a PR tomorrow."}}