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