def launch_test(self, pkg_name): timecnt = 0 blauched = False cmdline = LAUNCH_TEST % (self.deviceid, pkg_name) exit_code, stdout_log, stderr_log= shell_command_ext(cmdline) self.result_json = _testreport(stdout_log) return blauched
def shell_cmd_ext(self, cmd="", timeout=None, boutput=False, stdout_file=None, stderr_file=None): cmdline = "adb -s %s shell '%s; echo returncode=$?'" % ( self.deviceid, cmd) return shell_command_ext(cmdline, timeout, boutput, stdout_file, stderr_file)