Update WIP for dumpstate parser

This commit is contained in:
Donncha Ó Cearbhaill
2024-09-30 19:22:52 +02:00
parent 524bfcf649
commit 7d873f14dd
3 changed files with 27 additions and 9 deletions
+5 -2
View File
@@ -37,6 +37,9 @@ class TestAndroidArtifactDumpState:
elif section["section_name"] == b"MODEM CRASH HISTORY":
# Test parsing where section only has an error message
assert len(section["lines"]) == 1
assert section["lines"][0] == b"*** /data/tombstones//modem/mcrash_history: No such file or directory"
assert (
section["lines"][0]
== b"*** /data/tombstones//modem/mcrash_history: No such file or directory"
)
assert len(dumpstate.unparsed_lines) == 10
assert len(dumpstate.unparsed_lines) == 11
@@ -271,8 +271,8 @@ Packages:
------ 0.557s was the duration of 'DUMPSYS CRITICAL' ------
------ 0.023s was the duration of 'DUMPSYS CRITICAL PROTO' ------
------ SERIALIZE PERFETTO TRACE (perfetto --save-for-bugreport) ------
test
------ 0.036s was the duration of 'SERIALIZE PERFETTO TRACE' ------
------ End of SERIALIZE PERFETTO TRACE (perfetto --save-for-bugreport) ------
------ MODEM CRASH HISTORY (/data/tombstones//modem/mcrash_history) ------
*** /data/tombstones//modem/mcrash_history: No such file or directory
------ SYSTEM LOG (logcat -v threadtime -v printable -v uid -d *:v) ------