am 707e13f: AI 148689: CTS Exclude flaky test from android.graphics.cts
Merge commit '707e13f29c58725e8cd8b2feae36c989bf78dabb' into donut
* commit '707e13f29c58725e8cd8b2feae36c989bf78dabb':
AI 148689: CTS Exclude flaky test from android.graphics.cts
diff --git a/tools/host/src/com/android/cts/HostConfig.java b/tools/host/src/com/android/cts/HostConfig.java
index 116a46f..d8d96b4 100644
--- a/tools/host/src/com/android/cts/HostConfig.java
+++ b/tools/host/src/com/android/cts/HostConfig.java
@@ -66,9 +66,6 @@
private CaseRepository mCaseRepos;
private ResultRepository mResultRepos;
private PlanRepository mPlanRepos;
-
- // key: app package name
- // value: TestPackage
private HashMap<String, TestPackage> mTestPackageMap;
enum Ints {
@@ -265,9 +262,9 @@
* @return The binary name of the package.
*/
public String getPackageBinaryName(String appPackageName) {
-
for (TestPackage pkg : mTestPackageMap.values()) {
- if (appPackageName.equals(pkg.getAppPackageName())) {
+ if ((appPackageName.startsWith(pkg.getAppPackageName()))
+ || (appPackageName.equals(pkg.getAppBinaryName()))) {
return pkg.getAppBinaryName();
}
}