Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55db8ff9 authored by Calin Juravle's avatar Calin Juravle
Browse files

Fix trial run in AppLaunch test

If the app does not exist log an error but do not fail the test.

Test: atest google/test/performance/app-install-startup -v
Change-Id: Idb6f1d0ba3c5bfb6c7985cd84f5aa4e0599c6b59
parent 5c9a0085
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -247,8 +247,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));