Home
last modified time | relevance | path

Searched refs:commandResult (Results 1 – 9 of 9) sorted by relevance

/test/vts/tools/vts-core-tradefed/tests/src/com/android/compatibility/tradefed/util/
DTargetFileUtilsTest.java78 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testFindFile() local
79 commandResult.setStdout("path1\npath2\npath3\n"); in testFindFile()
80 commandResult.setExitCode(0); in testFindFile()
83 .andReturn(commandResult); in testFindFile()
99 CommandResult commandResult = new CommandResult(CommandStatus.FAILED); in testFindFile_w_cmd_result_fail() local
100 commandResult.setStdout("path1\npath2\npath3\n"); in testFindFile_w_cmd_result_fail()
101 commandResult.setExitCode(0); in testFindFile_w_cmd_result_fail()
103 .andReturn(commandResult); in testFindFile_w_cmd_result_fail()
114 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testFindFile_w_empty_line_stdout() local
115 commandResult.setStdout(""); in testFindFile_w_empty_line_stdout()
[all …]
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/util/
DVtsPythonRunnerHelperTest.java103 CommandResult commandResult = new CommandResult(); in testProcessRunSuccess() local
105 mVtsPythonRunnerHelper.runPythonRunner(mPythonCmd, commandResult, mTestTimeout); in testProcessRunSuccess()
107 assertEquals(commandResult.getStatus(), CommandStatus.SUCCESS); in testProcessRunSuccess()
117 CommandResult commandResult = new CommandResult(); in testProcessRunFailed() local
119 mVtsPythonRunnerHelper.runPythonRunner(mPythonCmd, commandResult, mTestTimeout); in testProcessRunFailed()
121 assertEquals(commandResult.getStatus(), CommandStatus.FAILED); in testProcessRunFailed()
131 CommandResult commandResult = new CommandResult(); in testProcessRunTimeout() local
133 mVtsPythonRunnerHelper.runPythonRunner(mPythonCmd, commandResult, mTestTimeout); in testProcessRunTimeout()
135 assertEquals(commandResult.getStatus(), CommandStatus.TIMED_OUT); in testProcessRunTimeout()
149 CommandResult commandResult = new CommandResult(); in testProcessRunInterrupted() local
[all …]
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/
DVtsPythonRunnerHelper.java71 public String runPythonRunner(String[] cmd, CommandResult commandResult, long timeout) { in runPythonRunner() argument
75 return runPythonRunner(cmd, commandResult, timeout, stdOut, stdErr); in runPythonRunner()
80 commandResult.setStdout(((ByteArrayOutputStream) stdOut).toString("UTF-8")); in runPythonRunner()
81 commandResult.setStderr(((ByteArrayOutputStream) stdErr).toString("UTF-8")); in runPythonRunner()
97 public String runPythonRunner(String[] cmd, CommandResult commandResult, long timeout, in runPythonRunner() argument
111 commandResult.setStatus(commandStatus); in runPythonRunner()
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/
DVtsCoveragePreparer.java158 CommandResult commandResult = mRunUtil.runTimedCmd(BASE_TIMEOUT, cmd); in setUp() local
159 if (commandResult == null || commandResult.getStatus() != CommandStatus.SUCCESS in setUp()
175 CommandResult commandResult = mRunUtil.runTimedCmd(BASE_TIMEOUT, cmd); in setUp() local
176 if (commandResult == null || commandResult.getStatus() != CommandStatus.SUCCESS in setUp()
187 CommandResult commandResult = mRunUtil.runTimedCmd(BASE_TIMEOUT, cmd); in setUp() local
189 if (commandResult == null || commandResult.getStatus() != CommandStatus.SUCCESS in setUp()
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/util/
DTargetFileUtils.java73 CommandResult commandResult = device.executeShellV2Command("stat -c %a " + filepath); in getPermission() local
74 if (!CommandStatus.SUCCESS.equals(commandResult.getStatus())) { in getPermission()
76 commandResult.getStdout(), commandResult.getStderr()); in getPermission()
79 return commandResult.getStdout().trim(); in getPermission()
/test/vts/harnesses/tradefed/src/com/android/tradefed/device/metric/
DVtsCoverageCollector.java97 CommandResult commandResult = new CommandResult(); in onTestRunEnd() local
99 mPythonRunnerHelper.runPythonRunner(cmd, commandResult, BASE_TIMEOUT); in onTestRunEnd()
100 if (commandResult == null || commandResult.getStatus() != CommandStatus.SUCCESS) { in onTestRunEnd()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/
DVtsCoveragePreparerTest.java109 CommandResult commandResult = new CommandResult(); in setUp() local
110 commandResult.setStatus(CommandStatus.SUCCESS); in setUp()
111 doReturn(commandResult).when(mRunUtil).runTimedCmd(anyLong(), any()); in setUp()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/testtype/
DVtsMultiDeviceTestTest.java188 String[] cmd, CommandResult commandResult, long testTimeout) { in createMockVtsPythonRunnerHelper()
195 commandResult.setStatus(status); in createMockVtsPythonRunnerHelper()
/test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/
DVtsMultiDeviceTest.java1345 CommandResult commandResult = new CommandResult(); in doRunTest() local
1357 cmd.toArray(new String[0]), commandResult, timeout, stdOut, stdErr); in doRunTest()
1359 if (commandResult != null) { in doRunTest()
1360 CommandStatus commandStatus = commandResult.getStatus(); in doRunTest()