Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 64) sorted by relevance

123

/test/vts/testcases/vts_selftest/manual_tests/shell_performance/
DVtsSelfTestShellPerformance.py38 def VtsShell(self, cmd, n): argument
46 self.shell.Execute(cmd)
48 def AdbShell(self, cmd, n): argument
56 self.dut.adb.shell(cmd)
58 def VtsShellList(self, cmd, n): argument
65 self.shell.Execute([cmd] * n)
81 cmd = "/data/local/tmp/zero_testcase"
84 self.AdbShell(cmd, 1)
85 self.VtsShell(cmd, 1)
89 adb_time = self.Measure(self.AdbShell, cmd, repeats)
[all …]
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/
DCmdUtil.java49 public boolean waitCmdResultWithDelay(ITestDevice device, String cmd, in waitCmdResultWithDelay() argument
52 if (validateCmdSuccess(device, cmd, predicate)) { in waitCmdResultWithDelay()
76 for (String cmd : cmds) { in retry()
77 CLog.d("Running a command: %s", cmd); in retry()
78 String out = device.executeShellCommand(cmd); in retry()
98 public boolean retry(ITestDevice device, String cmd, String validation_cmd, in retry() argument
100 return retry(device, cmd, validation_cmd, predicate, MAX_RETRY_COUNT); in retry()
114 public boolean retry(ITestDevice device, String cmd, String validation_cmd, in retry() argument
117 CLog.d("Running a command: %s", cmd); in retry()
118 device.executeShellCommand(cmd); in retry()
[all …]
DVtsPythonRunnerHelper.java63 protected ProcessHelper createProcessHelper(String[] cmd) throws IOException { in createProcessHelper() argument
64 return new ProcessHelper(mRunUtil.runCmdInBackground(cmd)); in createProcessHelper()
76 public String runPythonRunner(String[] cmd, CommandResult commandResult, long timeout) { in runPythonRunner() argument
79 process = createProcessHelper(cmd); in runPythonRunner()
/test/vts/utils/python/common/
Dcmd_utils.py33 def _ExecuteOneShellCommandWithTimeout(cmd, argument
56 proc = utils.start_standing_subprocess(cmd)
103 def ExecuteOneShellCommand(cmd, timeout=None, callback_on_timeout=None, *args): argument
120 str(cmd),
128 str(cmd), timeout, callback_on_timeout, *args)
131 def ExecuteShellCommand(cmd): argument
140 if not isinstance(cmd, list):
141 cmd = [cmd]
143 results = [ExecuteOneShellCommand(command) for command in cmd]
Dcmd_result.py47 def __init__(self, stdout, stderr, returncode, cmd=None, exception=None): argument
53 self.AddResult(stdout, stderr, returncode, cmd=cmd, exception=exception)
80 def cmd(self): member in CmdResult
95 def AddResult(self, stdout, stderr, returncode, cmd=None, exception=None): argument
110 self.cmds.append(cmd)
/test/vts/utils/python/file/
Dtarget_file_utils.py36 cmd = "test %s" % " ".join(args)
37 results = shell.Execute(cmd)
84 cmd = "find %s -name \"%s\"" % (path, name_pattern)
86 cmd += " " + options
87 results = shell.Execute(cmd)
88 logging.debug("%s: Shell command '%s' results: %s", path, cmd, results)
111 cmd = "cat %s" % filepath
112 results = shell.Execute(cmd)
113 logging.debug("%s: Shell command '%s' results: %s", filepath, cmd, results)
135 cmd = "stat -c %%a %s" % path
[all …]
/test/framework/harnesses/host_controller/acloud/
Dacloud_client.py75 cmd = ('create '
94 return cmd
105 cmd = ('delete '
117 return cmd
125 cmd = self.GetCreateCmd(build_id)
126 acloud_main.main(cmd.split())
181 for cmd in cmds:
182 print cmd
183 results = cmd_utils.ExecuteShellCommand(cmd)
185 logging.error("Fail to execute command: %s\nResult:%s" % (cmd,
[all …]
/test/vts/utils/python/controllers/
Dadb.py38 def __init__(self, cmd, stdout, stderr, ret_code): argument
39 self.cmd = cmd
46 ) % (self.cmd, self.ret_code, self.stdout, self.stderr)
128 def _exec_cmd(self, cmd, no_except=False, timeout=DEFAULT_ADB_TIMEOUT): argument
149 out, err, ret = cmd_utils.ExecuteOneShellCommand(cmd, timeout)
150 logging.debug("cmd: %s, stdout: %s, stderr: %s, ret: %s", cmd, out,
162 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
197 def _quote_wrap_shell_command(self, cmd): argument
208 return '"%s"' % cmd.replace('"', '\\"')
/test/vts/testcases/template/binary_test/
Dbinary_test_case.py66 cmd='', argument
78 self.cmd = cmd
141 cmd=self.cmd,
175 def cmd(self): member in BinaryTestCase
182 @cmd.setter
183 def cmd(self, cmd): member in BinaryTestCase
185 self._cmd = _SafeStrip(cmd)
Dbinary_test.py207 cmd = list(
210 cmd_results = self.shell.Execute(cmd)
213 '%s\n%s', cmd, cmd_results)
340 cmd = ['rm -rf %s' % dst for dst in paths]
341 cmd_results = self.shell.Execute(cmd, no_except=True)
350 cmd = ['rmdir %s' % d for d in dirs]
351 cmd_results = self.shell.Execute(cmd, no_except=True)
484 cmd = test_case.GetRunCommand()
485 logging.debug("Executing binary test command: %s", cmd)
486 command_results = self.shell.Execute(cmd)
/test/framework/harnesses/host_controller/command_processor/
Dcommand_test.py99 cmd = [bin_path, "run", "commandAndExit"]
100 cmd.extend(str(c) for c in command)
103 cmd.extend(["-s", str(serial)])
106 cmd.extend(["--log-file-path", result_dir, "--use-log-saver"])
108 return cmd
111 def _ExecuteCommand(cmd): argument
129 cmd,
175 cmd = self._GenerateTestSuiteCommand(
179 logging.info("Command: %s", cmd)
180 self._ExecuteCommand(cmd)
Dcommand_fastboot.py79 cmd = " ".join(cmd_list)
83 stdout, stderr, retcode = cmd_utils.ExecuteOneShellCommand(cmd)
86 cmd, args.timeout,
95 logging.warn("Retrying... (%s)", cmd)
/test/vts-testcase/kernel/memory/
DMemorySystemStressTest.py39 cmd = ['chmod +x', str(self._STRESSAPPTEST)]
40 self.shell.Execute(' '.join(cmd))
55 cmd = [str(self._STRESSAPPTEST), '-W ' '-M', str(self._mem), '-s', str(self._DURATION_SEC)]
56 logging.info(cmd)
57 results = self.shell.Execute(' '.join(cmd))
/test/vts-testcase/vndk/golden/
Ddump_abi.py26 def _ExecuteCommand(cmd, **kwargs): argument
37 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
41 cmd, stdout, stderr))
43 print("Warning: cmd=%s\nstdout=%s\nstderr=%s" % (cmd, stdout, stderr))
58 cmd = ["build/soong/soong_ui.bash", "--dumpvars-mode",
60 stdout = _ExecuteCommand(cmd, cwd=build_top_dir)
/test/vts/script/
Ddiagnose.py24 def runCommand(cmd, description): argument
33 returnCode = subprocess.call(cmd.split(' '))
35 print 'Error occured when executing following command:', cmd
/test/vts-testcase/kernel/linux_kselftest/
DLinuxKselftestTest.py102 cmd = 'find %s -type f | xargs %s | xargs %s' % (
104 result = self._shell.Execute(cmd)
125 cmd = [
129 logging.info("Executing: %s", cmd)
131 result = self._shell.Execute(cmd)
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/
DVtsHalAdapterPreparerTest.java66 public boolean waitCmdResultWithDelay(ITestDevice device, String cmd, in waitCmdResultWithDelay() argument
72 public boolean retry(ITestDevice device, String cmd, String validation_cmd, in retry() argument
74 device.executeShellCommand(cmd); in retry()
81 for (String cmd : cmds) { in retry()
82 device.executeShellCommand(cmd); in retry()
170 for (String cmd : adapterCmds) { in testOnSetUpAdapterMultipleInstance()
171 verify(mDevice, times(1)).executeShellCommand(eq(cmd)); in testOnSetUpAdapterMultipleInstance()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/testtype/
DVtsMultiDeviceTestTest.java99 private void assertCommand(String[] cmd) { in assertCommand() argument
100 assertEquals(cmd[0], PYTHON_BINARY); in assertCommand()
101 assertEquals(cmd[1], "-m"); in assertCommand()
102 assertEquals(cmd[2], TEST_CASE_PATH.replace("/", ".")); in assertCommand()
103 assertTrue(cmd[3].endsWith(".json")); in assertCommand()
104 assertEquals(cmd.length, 4); in assertCommand()
188 String[] cmd, CommandResult commandResult, long testTimeout) { in createMockVtsPythonRunnerHelper()
189 assertCommand(cmd); in createMockVtsPythonRunnerHelper()
191 createResult(cmd[3]); in createMockVtsPythonRunnerHelper()
/test/vts/utils/python/hal/
Dhal_service_name_utils.py48 cmd = binary
50 cmd += " -c "
51 cmd += " -b " + bitness + " " + hal
52 cmd_results = shell.Execute(str(cmd))
/test/vti/dashboard/src/main/java/com/android/vts/api/
DCoverageRestServlet.java83 String cmd = request.getParameter("cmd"); in doPost() local
87 json = postCoverageData(cmd, coverageId, testName, testRunId); in doPost()
151 String cmd, String coverageId, String testName, String testRunId) { in postCoverageData() argument
154 if (cmd.equals("disable")) { in postCoverageData()
164 cmd.equals("disable") in postCoverageData()
170 cmd.equals("disable") in postCoverageData()
/test/framework/harnesses/host_controller/tfc/
Dtfc_client_test.py83 cmd = command_attempt.CommandAttempt(
95 normal_event = cmd.CreateCommandEvent(
101 error_event = cmd.CreateCommandEvent(
108 complete_event = cmd.CreateInvocationCompletedEvent(
/test/vts/agents/hal/
DAgentRequestHandler.cpp139 char* cmd = NULL; local
160 asprintf(&cmd,
168 asprintf(&cmd,
177 asprintf(&cmd,
186 asprintf(&cmd,
206 &cmd,
218 if (cmd) {
219 LOG(INFO) << "Launch a driver - " << cmd;
220 system(cmd);
222 free(cmd);
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/
DVtsCoveragePreparer.java157 String[] cmd = cmdString.split("\\s+"); in setUp() local
158 CommandResult commandResult = mRunUtil.runTimedCmd(BASE_TIMEOUT, cmd); in setUp()
174 String[] cmd = cmdString.split("\\s+"); in setUp() local
175 CommandResult commandResult = mRunUtil.runTimedCmd(BASE_TIMEOUT, cmd); in setUp()
186 String[] cmd = cmdString.split("\\s+"); in setUp() local
187 CommandResult commandResult = mRunUtil.runTimedCmd(BASE_TIMEOUT, cmd); in setUp()
/test/vts/runners/host/
Dutils.py337 cmd = ' '.join(cmds)
339 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
428 def start_standing_subprocess(cmd, check_health_delay=0): argument
450 cmd,
457 cmd,
462 logging.debug("Start standing subprocess with cmd: %s", cmd)
/test/vts/utils/python/coverage/
Dcoverage_utils.py294 cmd = "kill -9 " + pid
295 self._ExecuteOneAdbShellCommand(dut, serial, cmd)
329 cmd = ("find %s -name \"*.gcda\"" % TARGET_COVERAGE_PATH)
330 result = self._ExecuteOneAdbShellCommand(dut, serial, cmd)
344 (cmd, str(results[cmd_utils.STDERR][0])))
681 def _ExecuteOneAdbShellCommand(self, dut, serial, cmd): argument
692 (serial, cmd))
695 (cmd, str(results[cmd_utils.STDERR][0])))
701 return dut.adb.shell(cmd)
704 (cmd, str(e)))

123