Merge "Use TotalTime instead of ThisTime in app launch test" into oc-dev

This commit is contained in:
Gopinath Elanchezhian
2017-06-15 05:05:21 +00:00
committed by Android (Google) Code Review

View File

@@ -664,7 +664,8 @@ public class AppLaunch extends InstrumentationTestCase {
if (lineCount == 2 && line.contains(SUCCESS_MESSAGE)) { if (lineCount == 2 && line.contains(SUCCESS_MESSAGE)) {
launchSuccess = true; launchSuccess = true;
} }
if (launchSuccess && lineCount == 4) { // Parse TotalTime which is the launch time
if (launchSuccess && lineCount == 5) {
String launchSplit[] = line.split(":"); String launchSplit[] = line.split(":");
launchTime = launchSplit[1].trim(); launchTime = launchSplit[1].trim();
} }