Merge "Fix trial run in AppLaunch test" am: 3e83b4cad8

am: fdbf99782e

Change-Id: I8f5fc7afb3c514ab862a3a99d3f93e77f65d698a
This commit is contained in:
Calin Juravle
2018-09-26 21:34:41 -07:00
committed by android-build-merger

View File

@@ -245,8 +245,14 @@ public class AppLaunch extends InstrumentationTestCase {
mIterationCycle = false;
// In the "applaunch.txt" file, trail launches is referenced using
// "TRIAL_LAUNCH"
String appPkgName = mNameToIntent.get(launch.getApp())
.getComponent().getPackageName();
Intent startIntent = mNameToIntent.get(launch.getApp());
if (startIntent == null) {
Log.w(TAG, "App does not exist: " + launch.getApp());
mResult.putString(mNameToResultKey.get(launch.getApp()),
"App does not exist");
continue;
}
String appPkgName = startIntent.getComponent().getPackageName();
if (SPEED_PROFILE_FILTER.equals(launch.getCompilerFilter())) {
assertTrue(String.format("Not able to compile the app : %s", appPkgName),
compileApp(VERIFY_FILTER, appPkgName));