commit | dd806b0ed3d7bda6830067bf342417e9bce495d9 | [log] [tgz] |
---|---|---|
author | wsmlby <wsmlby@google.com> | Tue Sep 09 16:06:50 2014 -0700 |
committer | wsmlby <wsmlby@google.com> | Tue Sep 09 16:10:12 2014 -0700 |
tree | 68dda7e668f7bce36646f6b9344f96d6875f04c7 | |
parent | 329a406ed9b7349e7bdba083c7d768264336ace2 [diff] |
Fix AppCompatibility test for different process name of one package. Change-Id: Ic30e5ee81fe6ea82e88d2c5541dc9fa9eba71043
diff --git a/tests/Compatibility/src/com/android/compatibilitytest/AppCompatibility.java b/tests/Compatibility/src/com/android/compatibilitytest/AppCompatibility.java index 5bf59c7..a2e9117 100644 --- a/tests/Compatibility/src/com/android/compatibilitytest/AppCompatibility.java +++ b/tests/Compatibility/src/com/android/compatibilitytest/AppCompatibility.java
@@ -208,6 +208,12 @@ Log.d(TAG, "Found process " + app.processName); return true; } + for (String relatedPackage : app.pkgList) { + if (relatedPackage.equalsIgnoreCase(processName)) { + Log.d(TAG, "Found process " + app.processName); + return true; + } + } } Log.d(TAG, "Failed to find process " + processName + " with package name " + packageName);