Skip to content

Commit

Permalink
Bug 1550161 - Avoid attribute error in android gtest; r=bc
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D30593

--HG--
extra : moz-landing-system : lando
  • Loading branch information
gbrownmozilla committed May 10, 2019
1 parent 881711d commit 1100843
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions testing/gtest/remotegtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class RemoteGTests(object):
"""
A test harness to run gtest on Android.
"""
def __init__(self):
self.device = None

def build_environment(self, shuffle, test_filter):
"""
Expand Down Expand Up @@ -190,10 +192,11 @@ def check_for_crashes(self, symbols_path):
return crashed

def cleanup(self):
self.device.stop_application(self.package)
self.device.rm(self.remote_log, force=True, root=True)
self.device.rm(self.remote_profile, recursive=True, force=True, root=True)
self.device.rm(self.remote_minidumps, recursive=True, force=True, root=True)
if self.device:
self.device.stop_application(self.package)
self.device.rm(self.remote_log, force=True, root=True)
self.device.rm(self.remote_profile, recursive=True, force=True, root=True)
self.device.rm(self.remote_minidumps, recursive=True, force=True, root=True)


class AppWaiter(object):
Expand Down

0 comments on commit 1100843

Please sign in to comment.