/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterCommandLauncherTest.java | 66 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 …]
|
D | ClusterCommandLauncherFuncTest.java | 58 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/ |
D | LogFileSaverTest.java | 49 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/ |
D | ClusterLogSaver.java | 74 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()
|
D | ClusterBuildProvider.java | 40 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()
|
D | ClusterCommandLauncher.java | 76 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()
|
D | TestResourceDownloader.java | 37 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/ |
D | SubprocessTfLauncher.java | 179 protected String mRootDir = null; field in SubprocessTfLauncher 224 mRootDir = rootDirFile.getAbsolutePath(); in preRun()
|
D | TfTestLauncher.java | 209 xmlResult = processExecData(mDestCoverageFile, mRootDir); in postRun()
|