summaryrefslogtreecommitdiff
path: root/javatests/com/android/loganalysis/parser
diff options
context:
space:
mode:
authorLisa Liu <liulisa@google.com>2022-11-10 08:36:22 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-11-10 08:36:22 +0000
commit36d2de6e3acfcbc438a4b4e8fa2c8b1a0823aa48 (patch)
tree4a8ee983a6580c0b5d97a316dbbba29aa02c5148 /javatests/com/android/loganalysis/parser
parent25473a63cc68582838fb3c8726a199e642692330 (diff)
parent1dfe4bf05984c0266b7263c5b9caed37295b3403 (diff)
downloadloganalysis-36d2de6e3acfcbc438a4b4e8fa2c8b1a0823aa48.tar.gz
Add mount_all command parsing to DmesgParser am: 2241d5cb75 am: cfe52c097d am: 1dfe4bf059
Original change: https://android-review.googlesource.com/c/platform/tools/loganalysis/+/2280787 Change-Id: I6b428f597e0885bdc002b1a86a05832cab45e51f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'javatests/com/android/loganalysis/parser')
-rw-r--r--javatests/com/android/loganalysis/parser/DmesgParserTest.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/javatests/com/android/loganalysis/parser/DmesgParserTest.java b/javatests/com/android/loganalysis/parser/DmesgParserTest.java
index e4ea7af..cc79db7 100644
--- a/javatests/com/android/loganalysis/parser/DmesgParserTest.java
+++ b/javatests/com/android/loganalysis/parser/DmesgParserTest.java
@@ -50,6 +50,8 @@ public class DmesgParserTest extends TestCase {
"[ 1.115467] init: Loaded 198 kernel modules took 748 ms",
"[ 2.471163] init: Wait for property 'apexd.status=ready' took 403ms",
"[ 3.786943] ueventd: Coldboot took 0.701291 seconds",
+ "[ 4.295667] init: Command 'mount_all --late' action=late-fs "
+ + "/vendor/etc/init/hw/init.rc:347) took 250ms and succeeded",
"[ 22.962730] init: starting service 'bootanim'...",
"[ 23.252321] init: starting service 'netd'...",
"[ 29.331069] ipa-wan ipa_wwan_ioctl:1428 dev(rmnet_data0) register to IPA",
@@ -113,7 +115,9 @@ public class DmesgParserTest extends TestCase {
assertEquals("Service info items list size should be 2", 2,
dmesgParser.getServiceInfoItems().size());
- assertEquals("Stage info items list size should be 3",3,
+ assertEquals(
+ "Stage info items list size should be 4",
+ 4,
dmesgParser.getStageInfoItems().size());
assertEquals("Action info items list size should be 9",9,
dmesgParser.getActionInfoItems().size());
@@ -138,7 +142,9 @@ public class DmesgParserTest extends TestCase {
dmesgParser.parseInfo(bufferedReader);
assertEquals("Service info items list size should be 2", 2,
dmesgParser.getServiceInfoItems().size());
- assertEquals("Stage info items list size should be 3", 3,
+ assertEquals(
+ "Stage info items list size should be 4",
+ 4,
dmesgParser.getStageInfoItems().size());
assertEquals("Action info items list size should be 9",9,
dmesgParser.getActionInfoItems().size());
@@ -223,7 +229,7 @@ public class DmesgParserTest extends TestCase {
dmesgParser.parseStageInfo(line);
}
List<DmesgStageInfoItem> stageInfoItems = dmesgParser.getStageInfoItems();
- assertEquals(3, stageInfoItems.size());
+ assertEquals(4, stageInfoItems.size());
assertEquals(EXPECTED_STAGE_INFO_ITEMS, stageInfoItems);
}
@@ -272,6 +278,7 @@ public class DmesgParserTest extends TestCase {
return Arrays.asList(
new DmesgStageInfoItem("init_Wait for property 'apexd.status=ready'", null, 403L),
new DmesgStageInfoItem("ueventd_Coldboot", null, 701L),
+ new DmesgStageInfoItem("init_mount_all_late", null, 250L),
new DmesgStageInfoItem("first", 41665L, null));
}