diff options
author | gopinath <gelanchezhian@google.com> | 2017-06-01 17:28:36 -0700 |
---|---|---|
committer | Gopinath Elanchezhian <gelanchezhian@google.com> | 2017-06-14 04:33:21 +0000 |
commit | 9326f2227cfc7595d52a6a48fb1831f1085961e7 (patch) | |
tree | e73edccd0aa69944e31c2d50df079f901bf42be6 | |
parent | 0a2c9396a289be2b1d1447d949e3f5969204261a (diff) |
Use TotalTime instead of ThisTime in app launch test
Bug: 62272543
Test: Tested with calculator and facebook messenger launch
Change-Id: Ide4e844e54428edcb7e3356cb3d0492392f6bde3
(cherry picked from commit fb9272c637f4b657d40057145e4dbce989005e67)
-rw-r--r-- | tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java b/tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java index 272653f7fc66..4d2f97f2a5fc 100644 --- a/tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java +++ b/tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java @@ -664,7 +664,8 @@ public class AppLaunch extends InstrumentationTestCase { if (lineCount == 2 && line.contains(SUCCESS_MESSAGE)) { launchSuccess = true; } - if (launchSuccess && lineCount == 4) { + // Parse TotalTime which is the launch time + if (launchSuccess && lineCount == 5) { String launchSplit[] = line.split(":"); launchTime = launchSplit[1].trim(); } |