コード例 #1
0
ファイル: launchers.py プロジェクト: mars-f/mozregression
 def check_is_runnable(cls):
     try:
         devices = ADBHost().devices()
     except ADBError as adb_error:
         raise LauncherNotRunnable(str(adb_error))
     if not devices:
         raise LauncherNotRunnable("No android device connected."
                                   " Connect a device and try again.")
コード例 #2
0
 def check_is_runnable(cls):
     # ADBHost().devices() seems to raise OSError when adb is not
     # installed and in PATH. TODO: maybe fix this in mozdevice.
     try:
         devices = ADBHost().devices()
     except OSError:
         raise LauncherNotRunnable("adb (Android Debug Bridge) is not"
                                   " installed or not in the PATH.")
     if not devices:
         raise LauncherNotRunnable("No android device connected."
                                   " Connect a device and try again.")
コード例 #3
0
ファイル: launchers.py プロジェクト: paked/mozregression
 def check_is_runnable(cls):
     # ADBHost().devices() seems to raise OSError when adb is not
     # installed and in PATH. TODO: maybe fix this in mozdevice.
     try:
         devices = ADBHost().devices()
     except OSError:
         raise LauncherNotRunnable("adb (Android Debug Bridge) is not"
                                   " installed or not in the PATH.")
     if not devices:
         raise LauncherNotRunnable("No android device connected."
                                   " Connect a device and try again.")
     if not raw_input("WARNING: bisecting fennec builds will clobber your"
                      " existing profile. Type 'y' to continue:") == 'y':
         raise LauncherNotRunnable('Aborted.')