Searched refs:envVars (Results 1 – 6 of 6) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterLogSaverTest.java | 120 Map<String, String> envVars = new TreeMap<>(); in testFindTestContextFile() local 124 mWorkDir, pattern, FilePickingStrategy.PICK_LAST, envVars); in testFindTestContextFile() 128 assertEquals(1, envVars.size()); in testFindTestContextFile() 129 assertEquals(sessionId, envVars.get("SESSION")); in testFindTestContextFile() 145 Map<String, String> envVars = new TreeMap<>(); in testFindTestContextFile_multipleMatches_pickFirst() local 149 mWorkDir, pattern, FilePickingStrategy.PICK_FIRST, envVars); in testFindTestContextFile_multipleMatches_pickFirst() 153 assertEquals(1, envVars.size()); in testFindTestContextFile_multipleMatches_pickFirst() 154 assertEquals(sessionIds[0], envVars.get("SESSION")); in testFindTestContextFile_multipleMatches_pickFirst() 170 Map<String, String> envVars = new TreeMap<>(); in testFindTestContextFile_multipleMatches_pickLast() local 174 mWorkDir, pattern, FilePickingStrategy.PICK_LAST, envVars); in testFindTestContextFile_multipleMatches_pickLast() [all …]
|
D | ClusterCommandSchedulerTest.java | 1076 Map<String, String> envVars = new TreeMap<>(); 1077 envVars.put("TF_WORK_DIR", workDir.getAbsolutePath()); 1078 envVars.putAll(testEnvironment.getEnvVars()); 1079 assertEquals(envVars, test.getEnvVars());
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | TestContext.java | 52 public void addEnvVars(Map<String, String> envVars) { in addEnvVars() argument 53 mEnvVars.putAll(envVars); in addEnvVars() 67 final JSONArray envVars = json.optJSONArray("env_vars"); in fromJson() local 68 if (envVars != null) { in fromJson() 69 for (int i = 0; i < envVars.length(); i++) { in fromJson() 70 final JSONObject pair = envVars.getJSONObject(i); in fromJson() 84 final JSONArray envVars = new JSONArray(); in toJson() local 89 envVars.put(pair); in toJson() 91 json.put("env_vars", envVars); in toJson()
|
D | ClusterCommandConfigBuilder.java | 123 TradefedConfigObject configObjDef, Map<String, String> envVars) in createConfigObject() argument 149 optionArgs.add(StringUtil.expand(value, envVars)); in createConfigObject() 191 Map<String, String> envVars = new TreeMap<>(); in build() 192 envVars.put("TF_WORK_DIR", mWorkDir.getAbsolutePath()); in build() 193 envVars.putAll(mTestEnvironment.getEnvVars()); in build() 194 envVars.putAll(mTestContext.getEnvVars()); in build() 200 device.addSpecificConfig(createConfigObject(configObjDef, envVars)); in build() 218 configObjs.add(createConfigObject(configObjDef, envVars)); in build() 236 for (final Map.Entry<String, String> entry : envVars.entrySet()) { in build()
|
D | ClusterLogSaver.java | 178 final Map<String, String> envVars) { in findTestContextFile() argument 205 envVars.put(name, value); in findTestContextFile() 325 Map<String, String> envVars = new TreeMap<>(); in invocationEnded() local 347 mRootDir, mContextFilePattern, mFilePickingStrategy, envVars); in invocationEnded() 362 testContext.addEnvVars(envVars); in invocationEnded()
|
D | TestEnvironment.java | 216 final JSONArray envVars = json.optJSONArray("env_vars"); in fromJson() local 217 if (envVars != null) { in fromJson() 218 for (int i = 0; i < envVars.length(); i++) { in fromJson() 219 final JSONObject envVar = envVars.getJSONObject(i); in fromJson()
|