Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandLauncherTest.java66 private File mRootDir; field in ClusterCommandLauncherTest
89 mRootDir = createTempDir("RootDir"); in setUp()
90 mTfPath = new File(mRootDir, "TfPath"); in setUp()
92 mTfLibDir = new File(mRootDir, "TfLibDir"); in setUp()
101 mOptionSetter.setOptionValue("cluster:root-dir", mRootDir.getAbsolutePath()); in setUp()
102 mOptionSetter.setOptionValue("cluster:env-var", "TF_WORK_DIR", mRootDir.getAbsolutePath()); in setUp()
107 FileUtil.recursiveDelete(mRootDir); in tearDown()
113 final File tfJar = new File(mRootDir, "foo.jar"); in testRun()
148 Mockito.verify(mMockRunUtil, Mockito.times(2)).setWorkingDir(mRootDir); in testRun()
150 Mockito.verify(mMockRunUtil).setEnvVariable("TF_WORK_DIR", mRootDir.getAbsolutePath()); in testRun()
[all …]
DClusterCommandLauncherFuncTest.java58 private File mRootDir; field in ClusterCommandLauncherFuncTest
69 mRootDir = FileUtil.createTempDir(getClass().getName() + "_RootDir"); in setUp()
76 mOptionSetter.setOptionValue("cluster:root-dir", mRootDir.getAbsolutePath()); in setUp()
77 mOptionSetter.setOptionValue("cluster:env-var", "TF_WORK_DIR", mRootDir.getAbsolutePath()); in setUp()
82 FileUtil.recursiveDelete(mRootDir); in tearDown()
89 File tfJar = new File(mRootDir, "tradefed.jar"); in testRun_withLegacyTradefed()
91 mOptionSetter.setOptionValue("cluster:env-var", "TF_PATH", mRootDir.getAbsolutePath()); in testRun_withLegacyTradefed()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DLogFileSaverTest.java49 private File mRootDir; field in LogFileSaverTest
54 mRootDir = FileUtil.createTempDir("tmpdir"); in setUp()
59 FileUtil.recursiveDelete(mRootDir); in tearDown()
75 LogFileSaver saver = new LogFileSaver(mockBuild, mRootDir); in testGetFileDir()
87 assertEquals(0, mRootDir.compareTo(branchDir.getParentFile())); in testGetFileDir()
90 LogFileSaver newsaver = new LogFileSaver(mockBuild, mRootDir); in testGetFileDir()
110 LogFileSaver saver = new LogFileSaver(mockBuild, mRootDir); in testGetFileDir_nobranch()
119 assertEquals(0, mRootDir.compareTo(buildDir.getParentFile())); in testGetFileDir_nobranch()
135 LogFileSaver saver = new LogFileSaver(mockBuild, mRootDir, 1); in testGetFileDir_retention()
155 LogFileSaver saver = new LogFileSaver(new BuildInfo(), mRootDir); in testSaveLogData()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterLogSaver.java74 private File mRootDir; field in ClusterLogSaver
123 mLogDir = new File(mRootDir, "logs"); in invocationStarted()
128 return mRootDir.toPath().relativize(p); in getRelativePath()
257 File fileNamesFile = new File(mRootDir, FILE_NAMES_FILE_NAME); in uploadFiles()
303 path = mRootDir.toPath().resolve(path); in appendFilesToContext()
339 findFilesRecursively(mRootDir, regex).forEach(file -> outputFiles.put(file, null)); in invocationEnded()
347 mRootDir, mContextFilePattern, mFilePickingStrategy, envVars); in invocationEnded()
DClusterBuildProvider.java40 private File mRootDir; field in ClusterBuildProvider
54 mRootDir.mkdirs(); in getBuild()
55 final IBuildInfo buildInfo = new ClusterBuildInfo(mRootDir, mBuildId, mBuildTarget); in getBuild()
56 final TestResourceDownloader downloader = new TestResourceDownloader(mRootDir); in getBuild()
93 return mRootDir; in getRootDir()
DClusterCommandLauncher.java76 private File mRootDir; field in ClusterCommandLauncher
142 runUtil.setWorkingDir(mRootDir); in run()
149 final File testWorkDir = new File(getEnvVar(TEST_WORK_DIR, mRootDir.getAbsolutePath())); in run()
150 final File logDir = new File(mRootDir, "logs"); in run()
DTestResourceDownloader.java37 private final File mRootDir; field in TestResourceDownloader
41 mRootDir = rootDir; in TestResourceDownloader()
47 final File dest = new File(mRootDir, resource.getName()); in download()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DSubprocessTfLauncher.java179 protected String mRootDir = null; field in SubprocessTfLauncher
224 mRootDir = rootDirFile.getAbsolutePath(); in preRun()
DTfTestLauncher.java209 xmlResult = processExecData(mDestCoverageFile, mRootDir); in postRun()