summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorwsmlby <wsmlby@google.com>2014-09-10 00:21:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-10 00:21:27 +0000
commite12c6f7d545ba4b44386003d41c208cf0367c56d (patch)
tree1a5698cf0a18bdef32768ad0362905da9c7842ec /tests
parent109526fe4f01a2b7ac90106cf41966b2d872d03a (diff)
parentdd806b0ed3d7bda6830067bf342417e9bce495d9 (diff)
downloadframeworks_base-e12c6f7d545ba4b44386003d41c208cf0367c56d.zip
frameworks_base-e12c6f7d545ba4b44386003d41c208cf0367c56d.tar.gz
frameworks_base-e12c6f7d545ba4b44386003d41c208cf0367c56d.tar.bz2
Merge "Fix AppCompatibility test for different process name of one package." into lmp-dev
Diffstat (limited to 'tests')
-rw-r--r--tests/Compatibility/src/com/android/compatibilitytest/AppCompatibility.java6
1 files changed, 6 insertions, 0 deletions
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 @@ public class AppCompatibility extends InstrumentationTestCase {
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);