Home
last modified time | relevance | path

Searched refs:getCommandOptions (Results 1 – 25 of 26) sorted by relevance

12

/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationExecution.java247 if (!config.getCommandOptions().shouldSkipPreDeviceSetup()) { in runDevicePreInvocationSetup()
265 if (!config.getCommandOptions().shouldSkipPreDeviceSetup()) { in runDevicePostInvocationTearDown()
470 for (AutoLogCollector auto : config.getCommandOptions().getAutoLogCollectors()) { in runTests()
562 if (config.getCommandOptions().getShardCount() != null) { in updateInvocationContext()
564 "shard_count", config.getCommandOptions().getShardCount().toString()); in updateInvocationContext()
566 if (config.getCommandOptions().getShardIndex() != null) { in updateInvocationContext()
568 "shard_index", config.getCommandOptions().getShardIndex().toString()); in updateInvocationContext()
575 String testTag = config.getCommandOptions().getTestTag(); in getTestTag()
576 if (config.getCommandOptions().getTestTagSuffix() != null) { in getTestTag()
578 String.format("%s-%s", testTag, config.getCommandOptions().getTestTagSuffix()); in getTestTag()
[all …]
DTestInvocation.java171 if (config.getCommandOptions().getShardIndex() != null) { in logStartInvocation()
175 config.getCommandOptions().getShardIndex() + 1, in logStartInvocation()
176 config.getCommandOptions().getShardCount()); in logStartInvocation()
225 if (!config.getCommandOptions().shouldUseSandboxing()) { in performInvocation()
295 if (config.getCommandOptions().takeBugreportOnInvocationEnded() || in performInvocation()
296 config.getCommandOptions().takeBugreportzOnInvocationEnded()) { in performInvocation()
421 resumeConfig.setCommandOptions(config.getCommandOptions().clone()); in resume()
458 if (!config.getCommandOptions().isLoopMode() && test instanceof IRetriableTest && in rescheduleTest()
474 if (config.getCommandOptions().getHostLogSuffix() != null) { in reportHostLog()
475 name += config.getCommandOptions().getHostLogSuffix(); in reportHostLog()
[all …]
DRemoteInvocationExecution.java131 if (config.getCommandOptions().getShardCount() != null in runTests()
132 && config.getCommandOptions().getShardIndex() == null) { in runTests()
133 if (config.getCommandOptions().getShardCount() > 1) { in runTests()
134 boolean parallel = config.getCommandOptions().shouldUseParallelRemoteSetup(); in runTests()
138 for (int i = 2; i < config.getCommandOptions().getShardCount() + 1; i++) { in runTests()
148 for (int i = 2; i < config.getCommandOptions().getShardCount() + 1; i++) { in runTests()
337 if (config.getCommandOptions().shouldUseRemoteSandboxMode()) { in runRemote()
405 long maxTimeout = config.getCommandOptions().getInvocationTimeout(); in isStillRunning()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DShardHelper.java91 Integer shardCount = config.getCommandOptions().getShardCount(); in shardConfig()
122 if (config.getCommandOptions().shouldUseTokenSharding()) { in shardConfig()
135 if (config.getCommandOptions().shouldUseTokenSharding()) { in shardConfig()
142 if (config.getCommandOptions().shouldUseDynamicSharding()) { in shardConfig()
178 if (shardConfig.getCommandOptions().getHostLogSuffix() != null) { in rescheduleConfig()
179 suffix = shardConfig.getCommandOptions().getHostLogSuffix() + suffix; in rescheduleConfig()
181 shardConfig.getCommandOptions().setHostLogSuffix(suffix); in rescheduleConfig()
228 clonedConfig.getCommandOptions().setShardCount(null); in cloneConfigObject()
DStrictShardHelper.java46 Integer shardCount = config.getCommandOptions().getShardCount(); in shardConfig()
47 Integer shardIndex = config.getCommandOptions().getShardIndex(); in shardConfig()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DSandboxedInvocationExecutionTest.java198 mConfig.getCommandOptions().setShouldUseSandboxing(true); in testParentSandboxInvocation_sharding()
199 mConfig.getCommandOptions().setShardCount(5); in testParentSandboxInvocation_sharding()
200 mConfig.getCommandOptions().setShardIndex(1); in testParentSandboxInvocation_sharding()
227 mConfig.getCommandOptions().setShouldUseSandboxing(true); in testParentSandboxInvocation()
285 mConfig.getCommandOptions().setShardCount(5); in testInvocation_sharding_notTests()
286 mConfig.getCommandOptions().setShardIndex(1); in testInvocation_sharding_notTests()
348 mConfig.getCommandOptions().setShardCount(5); in testInvocation_preInvocationFailing()
349 mConfig.getCommandOptions().setShardIndex(1); in testInvocation_preInvocationFailing()
DTestInvocationMultiTest.java171 EasyMock.expect(mMockConfig.getCommandOptions()).andStubReturn(new CommandOptions()); in testRunBuildProvider_oneMiss()
251 EasyMock.expect(mMockConfig.getCommandOptions()).andStubReturn(new CommandOptions()); in testRunBuildProvider_oneThrow()
331 EasyMock.expect(mMockConfig.getCommandOptions()).andStubReturn(new CommandOptions()); in testRunBuildProvider_cleanUpThrow()
DInvocationExecutionTest.java229 mConfig.getCommandOptions().setAutoLogCollectors(specialCollectors); in testRun_metricCollectors_auto()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigDump.java88 config.getCommandOptions().setShouldUseSandboxing(false); in parse()
108 config.getCommandOptions().setBugreportOnInvocationEnded(false); in parse()
109 config.getCommandOptions().setBugreportzOnInvocationEnded(false); in parse()
116 config.getCommandOptions().setShouldUseSandboxing(true); in parse()
119 config.getCommandOptions().setUseSandboxTestMode(false); in parse()
DTradefedSandbox.java105 if (config.getCommandOptions().shouldUseSandboxTestMode()) { in run()
110 long timeout = config.getCommandOptions().getInvocationTimeout(); in run()
169 if (config.getCommandOptions().getShardCount() != null in prepareEnvironment()
170 && config.getCommandOptions().getShardIndex() == null) { in prepareEnvironment()
315 if (config.getCommandOptions().shouldUseSandboxTestMode()) { in prepareConfiguration()
372 if (config.getCommandOptions().shouldUseSandboxTestMode()) { in prepareContext()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java334 return mConfig.getCommandOptions().isLoopMode(); in isLoopMode()
377 config.getCommandOptions().setLoopMode(false); in scheduleConfig()
392 return addExecCommandToQueue(execCmd, config.getCommandOptions().getLoopTime()); in rescheduleCommand()
581 && !config.getCommandOptions().getInvocationData().isEmpty()) { in run()
583 config.getCommandOptions().getInvocationData()); in run()
586 long invocTimeout = config.getCommandOptions().getInvocationTimeout(); in run()
1202 if (config.getCommandOptions().isHelpMode()) { in internalAddCommand()
1204 } else if (config.getCommandOptions().isFullHelpMode()) { in internalAddCommand()
1206 } else if (config.getCommandOptions().isJsonHelpMode()) { in internalAddCommand()
1213 } else if (config.getCommandOptions().isDryRunMode()) { in internalAddCommand()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DRetryRescheduler.java129 .getCommandOptions() in run()
130 .setShardCount(mConfiguration.getCommandOptions().getShardCount()); in run()
132 .getCommandOptions() in run()
133 .setShardIndex(mConfiguration.getCommandOptions().getShardIndex()); in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteIntegrationTest.java499 config.getCommandOptions().setShardCount(5); in testRun_sharding_firstModuleRunsAll()
539 config.getCommandOptions().setShardCount(5); in testRun_sharding_parallelRun()
585 config.getCommandOptions().setShardCount(2); in testRun_sharding_withIndex()
586 config.getCommandOptions().setShardIndex(0); in testRun_sharding_withIndex()
664 config.getCommandOptions().setShardCount(shardCount); in helperTestShardIndex()
665 config.getCommandOptions().setShardIndex(shardIndex); in helperTestShardIndex()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DVersionedTfLauncherTest.java167 EasyMock.expect(mMockConfig.getCommandOptions()).andReturn(new CommandOptions()); in testRun_singleDevice()
229 EasyMock.expect(mMockConfig.getCommandOptions()).andReturn(new CommandOptions()); in testRun_nullDevice()
291 EasyMock.expect(mMockConfig.getCommandOptions()).andReturn(new CommandOptions()); in testRun_DeviceNoPreSetup()
376 EasyMock.expect(mMockConfig.getCommandOptions()).andReturn(new CommandOptions()); in testGetTestShard()
DTfTestLauncherTest.java78 EasyMock.expect(mMockConfig.getCommandOptions()).andStubReturn(new CommandOptions()); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DTradefedSandboxTest.java198 EasyMock.expect(mMockConfig.getCommandOptions()).andStubReturn(new CommandOptions()); in testPrepareEnvironment_noTfDirJar()
211 EasyMock.expect(mMockConfig.getCommandOptions()).andStubReturn(new CommandOptions()); in setPrepareConfigurationExpectations()
DSandboxedInvocationExecutionTest.java55 mConfig.getCommandOptions().setTestTag("test"); in testBuildInfo_testTag()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerStressApp.java50 EasyMock.expect(mMockConfig.getCommandOptions()).andStubReturn(mCommandOptions); in CommandSchedulerStressApp()
DCommandSchedulerFuncTest.java106 EasyMock.expect(mSlowConfig.getCommandOptions()).andStubReturn(mCommandOptions); in setUp()
109 EasyMock.expect(mFastConfig.getCommandOptions()).andStubReturn(mCommandOptions); in setUp()
DCommandSchedulerTest.java566 EasyMock.expect(rescheduledConfig.getCommandOptions()).andStubReturn(mCommandOptions); in testRun_rescheduled()
753 EasyMock.expect(mMockConfiguration.getCommandOptions()).andStubReturn(mCommandOptions); in setCreateConfigExpectations()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfiguration.java412 public ICommandOptions getCommandOptions() { in getCommandOptions() method in Configuration
1283 ICommandOptions options = getCommandOptions(); in validateOptions()
1465 getCommandOptions(), in dumpXml()
DIConfiguration.java153 public ICommandOptions getCommandOptions(); in getCommandOptions() method
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationTest.java280 assertNotNull(mConfig.getCommandOptions()); in testGetCommandOptions()
283 assertEquals(cmdOptions, mConfig.getCommandOptions()); in testGetCommandOptions()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/
DRetryReschedulerTest.java79 EasyMock.expect(mRescheduledConfiguration.getCommandOptions()) in setUp()
148 mTopConfiguration.getCommandOptions().setShardCount(2); in testReschedule_carryShardCount()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DSubprocessTfLauncher.java224 UniqueMultiMap<String, String> data = mConfig.getCommandOptions().getInvocationData(); in addInvocationData()

12