def connect_to_device_with_root(): if not AdbUtils.adb_connect_to_device(g_target_device_ip): print 'Failed adb connect to %s' % g_target_device_ip exit(1) if not AdbUtils.adb_connect_with_root(g_target_device_ip): print 'Failed adb root and connect to %s' % g_target_device_ip exit(1)
def run_test_setup(during): init_local_report_paths() LogUtils.init_log_config(logging.DEBUG, logging.INFO, g_local_test_logging_file_path) if not AdbUtils.adb_connect_with_root(g_device_ip): logging.error('adb is NOT run with root!') exit(1) rm_old_captures_on_remote() test_case = g_test_class[(g_test_class.rindex('.') + 1) : ] logging.info('----- START run test %s for %s minutes' % (test_case, during / 60))
def connect_device(device_ip): if not AdbUtils.adb_connect_with_root(device_ip): raise Exception('Adb connect with root failed!')
def connect_device(device_ip): if not AdbUtils.adb_connect_with_root(device_ip): raise Exception('Adb connect with root failed!')