/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterLogSaverTest.java | 61 private File mWorkDir; field in ClusterLogSaverTest 69 mWorkDir = FileUtil.createTempDir(this.getClass().getName()); in setUp() 76 mOptionSetter.setOptionValue("cluster:root-dir", mWorkDir.getAbsolutePath()); in setUp() 83 FileUtil.recursiveDelete(mWorkDir); in tearDown() 88 final File dir = new File(mWorkDir, path); in createMockFile() 124 mWorkDir, pattern, FilePickingStrategy.PICK_LAST, envVars); in testFindTestContextFile() 149 mWorkDir, pattern, FilePickingStrategy.PICK_FIRST, envVars); in testFindTestContextFile_multipleMatches_pickFirst() 174 mWorkDir, pattern, FilePickingStrategy.PICK_LAST, envVars); in testFindTestContextFile_multipleMatches_pickLast() 191 mWorkDir, pattern, FilePickingStrategy.PICK_LAST, envVars); in testFindTestContextFile_noMatch() 209 mWorkDir, pattern, FilePickingStrategy.PICK_LAST, envVars); in testFindTestContextFile_existingEnvVar() [all …]
|
D | ClusterCommandConfigBuilderTest.java | 67 private File mWorkDir; field in ClusterCommandConfigBuilderTest 80 mWorkDir = FileUtil.createTempDir(this.getClass().getSimpleName()); in setUp() 95 builder.setWorkDir(mWorkDir) in setUp() 104 FileUtil.recursiveDelete(mWorkDir); in tearDown() 115 verify(mConfig, times(1)).injectOptionValue("cluster:root-dir", mWorkDir.getAbsolutePath()); in testBuild_commandProperties() 170 .injectOptionValue("cluster:env-var", "TF_WORK_DIR", mWorkDir.getAbsolutePath()); in testBuild_envVars()
|
D | SubprocessReportingHelperTest.java | 36 private File mWorkDir; field in SubprocessReportingHelperTest 41 mWorkDir = FileUtil.createTempDir("tfjar"); in setUp() 43 mHelper = new SubprocessReportingHelper("host", mClasspath, mWorkDir, null); in setUp() 48 FileUtil.recursiveDelete(mWorkDir); in tearDown()
|
D | SubprocessConfigBuilderTest.java | 48 private File mWorkDir; field in SubprocessConfigBuilderTest 54 mWorkDir = FileUtil.createTempDir("tfjar"); in setUp() 59 FileUtil.recursiveDelete(mWorkDir); in tearDown() 68 .setWorkingDir(mWorkDir) in testCreateWrapperConfig()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | TarUtilTest.java | 41 private File mWorkDir; field in TarUtilTest 45 mWorkDir = FileUtil.createTempDir("tarutil_unit_test_dir"); in setUp() 50 FileUtil.recursiveDelete(mWorkDir); in tearDown() 81 File testFile = TarUtil.unGzip(logTarGzFile, mWorkDir); in testUnGzip() 101 File testFile = TarUtil.unGzip(logTarGzFile, mWorkDir); in testUntar() 103 List<File> untaredList = TarUtil.unTar(testFile, mWorkDir); in testUntar() 163 File tmpFile = FileUtil.createTempFile("base_file", ".txt", mWorkDir); in testGzipDir_unGzip() 165 File unzipped = FileUtil.createTempDir("unzip-test-dir", mWorkDir); in testGzipDir_unGzip()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | RunHostScriptTargetPreparerTest.java | 69 private File mWorkDir; field in RunHostScriptTargetPreparerTest 92 mWorkDir = FileUtil.createTempDir(this.getClass().getSimpleName()); in setUp() 93 mScriptFile = File.createTempFile("script", ".sh", mWorkDir); in setUp() 106 FileUtil.recursiveDelete(mWorkDir); in tearDown() 124 mOptionSetter.setOptionValue("work-dir", mWorkDir.getAbsolutePath()); in testSetUp_workingDir() 128 verify(mRunUtil).setWorkingDir(mWorkDir); in testSetUp_workingDir() 159 Path adbDir = Files.createTempDirectory(mWorkDir.toPath(), "adb"); in testSetUp_pathVariable() 163 Path fastbootDir = Files.createTempDirectory(mWorkDir.toPath(), "fastboot"); in testSetUp_pathVariable()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterCommandConfigBuilder.java | 52 private File mWorkDir; field in ClusterCommandConfigBuilder 105 mWorkDir = workDir; in setWorkDir() 172 assert mWorkDir != null; in build() 192 envVars.put("TF_WORK_DIR", mWorkDir.getAbsolutePath()); in build() 212 Paths.get(mWorkDir.getAbsolutePath(), "logs", "host_log.txt").toString()); in build() 234 config.injectOptionValue("cluster:root-dir", mWorkDir.getAbsolutePath()); in build() 299 File f = new File(mWorkDir, "command.xml"); in build()
|
D | SubprocessReportingHelper.java | 54 private File mWorkDir; field in SubprocessReportingHelper 61 mWorkDir = workDir; in SubprocessReportingHelper() 77 builder.setWorkingDir(mWorkDir) in buildSubprocessReporterJar() 86 final File reporterJar = new File(mWorkDir, REPORTER_JAR_NAME); in buildSubprocessReporterJar()
|
D | ClusterCommandScheduler.java | 148 private File mWorkDir; field in ClusterCommandScheduler.InvocationEventHandler 166 mWorkDir = dir; in setWorkDir() 284 if (mWorkDir != null) { in invocationComplete() 285 FileUtil.recursiveDelete(mWorkDir); in invocationComplete()
|
D | SubprocessConfigBuilder.java | 58 private File mWorkDir; field in SubprocessConfigBuilder 70 mWorkDir = dir; in setWorkingDir() 146 File f = new File(mWorkDir, createConfigName(mOriginalConfig)); in build()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | RunHostScriptTargetPreparer.java | 54 private File mWorkDir = null; field in RunHostScriptTargetPreparer 81 getRunUtil().setWorkingDir(mWorkDir); in setUp() 133 if (mWorkDir != null) { in findScriptFile() 134 scriptFile = new File(mWorkDir, mScriptPath); in findScriptFile()
|
D | RunHostCommandTargetPreparer.java | 57 private File mWorkDir = null; field in RunHostCommandTargetPreparer 145 if (mWorkDir != null) { in setUp() 146 getRunUtil().setWorkingDir(mWorkDir); in setUp()
|