示例#1
0
文件: runtest.py 项目: cjq/autoTest
 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
示例#2
0
文件: runtest.py 项目: cjq/autoTest
 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)