Home
last modified time | relevance | path

Searched refs:mCommandResult (Results 1 – 5 of 5) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/testtype/binary/
DKernelTargetTestTest.java74 private CommandResult mCommandResult; field in KernelTargetTestTest
96 mCommandResult = new CommandResult(CommandStatus.SUCCESS); in test_exitCodeSkip()
97 mCommandResult.setExitCode(32); in test_exitCodeSkip()
100 mKernelTargetTest.checkCommandResult(mCommandResult, mListener, testDescription); in test_exitCodeSkip()
111 mCommandResult = new CommandResult(CommandStatus.SUCCESS); in test_mismatchedExitCodeSkip()
112 mCommandResult.setExitCode(20); in test_mismatchedExitCodeSkip()
115 mKernelTargetTest.checkCommandResult(mCommandResult, mListener, testDescription); in test_mismatchedExitCodeSkip()
125 mCommandResult = new CommandResult(CommandStatus.SUCCESS); in test_noExitCodeSkip()
126 mCommandResult.setExitCode(32); in test_noExitCodeSkip()
129 mKernelTargetTest.checkCommandResult(mCommandResult, mListener, testDescription); in test_noExitCodeSkip()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DDeviceActionTargetPreparerTest.java71 @Mock CommandResult mCommandResult; field in DeviceActionTargetPreparerTest
86 .thenReturn(mCommandResult); in setUp()
87 when(mCommandResult.getStderr()).thenReturn(""); in setUp()
88 when(mCommandResult.getStdout()).thenReturn(""); in setUp()
89 when(mCommandResult.getStatus()).thenReturn(CommandStatus.SUCCESS); in setUp()
90 when(mCommandResult.getExitCode()).thenReturn(0); in setUp()
201 when(mCommandResult.getExitCode()).thenReturn(1); in setUp_executeFailureThrowExecutionException()
214 doThrow(new IOException()).when(mockDeviceActionUtil).generateLogFile(mCommandResult); in setUp_saveLogErrorThrowInfraException()
226 when(mCommandResult.getExitCode()).thenReturn(1); in setUp_saveLogErrorAndExectionFailureThrowExecutionException()
227 doThrow(new IOException()).when(mockDeviceActionUtil).generateLogFile(mCommandResult); in setUp_saveLogErrorAndExectionFailureThrowExecutionException()
DFeatureFlagTargetPreparerTest.java58 private CommandResult mCommandResult; field in FeatureFlagTargetPreparerTest
65 mCommandResult = new CommandResult(CommandStatus.SUCCESS); in setUp()
66 when(mDevice.executeShellV2Command(anyString())).thenReturn(mCommandResult); in setUp()
73 mCommandResult.setStdout("namespace/f=v\n"); in testSetUpAndTearDown_oneFlagFile_newAndUpdatedFlags()
95 mCommandResult.setStdout("namespace/f=\n"); in testSetUpAndTearDown_oneFlagFile_nullValueFlagInDeviceConfig()
115 mCommandResult.setStdout("namespace/f=v\n"); in testSetUpAndTearDown_oneFlagFile_nullValueFlagInFile()
238 mCommandResult.setStdout("namespace/f1=v1\n"); in testSetUpAndTearDown_additionalFlagValues()
261 mCommandResult.setStdout("namespace/f1=v1\n"); in testSetUp_withoutRebootBetweenFiles()
294 mCommandResult.setStdout(""); in testSetUp_ignoreInvalid()
313 mCommandResult.setStdout("namespace/flag=value\n"); in testSetUp_ignoreUnchanged()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DDeviceActionUtilTest.java48 @Mock CommandResult mCommandResult; field in DeviceActionUtilTest
61 when(mMockRuntil.runTimedCmd(anyLong(), any())).thenReturn(mCommandResult); in setUp()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DRunUtil.java830 private final CommandResult mCommandResult; field in RunUtil.RunnableResult
878 mCommandResult = newCommandResult(); in RunnableResult()
894 return mCommandResult; in getResult()
994 mCommandResult.setExitCode(rc); in run()
998 mCommandResult.setStdout(FileUtil.readStringFromFile(stdoutFile)); in run()
1004 mCommandResult.setStdout("redirected to " + stdoutDest); in run()
1007 mCommandResult.setStderr(FileUtil.readStringFromFile(stderrFile)); in run()
1013 mCommandResult.setStderr("redirected to " + stderrDest); in run()