diff options
author | wsmlby <wsmlby@google.com> | 2014-09-10 00:21:26 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-09-10 00:21:27 +0000 |
commit | e12c6f7d545ba4b44386003d41c208cf0367c56d (patch) | |
tree | 1a5698cf0a18bdef32768ad0362905da9c7842ec /tests | |
parent | 109526fe4f01a2b7ac90106cf41966b2d872d03a (diff) | |
parent | dd806b0ed3d7bda6830067bf342417e9bce495d9 (diff) | |
download | frameworks_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.java | 6 |
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); |