Home
last modified time | relevance | path

Searched refs:mWorkDir (Results 1 – 12 of 12) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterLogSaverTest.java61 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 …]
DClusterCommandConfigBuilderTest.java67 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()
DSubprocessReportingHelperTest.java36 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()
DSubprocessConfigBuilderTest.java48 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/
DTarUtilTest.java41 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/
DRunHostScriptTargetPreparerTest.java69 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/
DClusterCommandConfigBuilder.java52 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()
DSubprocessReportingHelper.java54 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()
DClusterCommandScheduler.java148 private File mWorkDir; field in ClusterCommandScheduler.InvocationEventHandler
166 mWorkDir = dir; in setWorkDir()
284 if (mWorkDir != null) { in invocationComplete()
285 FileUtil.recursiveDelete(mWorkDir); in invocationComplete()
DSubprocessConfigBuilder.java58 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/
DRunHostScriptTargetPreparer.java54 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()
DRunHostCommandTargetPreparer.java57 private File mWorkDir = null; field in RunHostCommandTargetPreparer
145 if (mWorkDir != null) { in setUp()
146 getRunUtil().setWorkingDir(mWorkDir); in setUp()