Tests: method 'extract_hftest_lines' made generic
Method 'extract_hftest_lines' from TestRunner class was made generic.
Previous implementation would only support one digit to represent
vm's id in the test logs. SPs IDs have at least 4 (base is 0x8000).
Change-Id: I0b293e3b2b72bf0a4ac9617a796748898cbe5426
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/test/hftest/hftest.py b/test/hftest/hftest.py
index 317a8f4..e816e53 100755
--- a/test/hftest/hftest.py
+++ b/test/hftest/hftest.py
@@ -594,8 +594,9 @@
of the test platform."""
lines = []
for line in raw.splitlines():
- if line.startswith("VM "):
- line = line[len("VM 0: "):]
+ match = re.search(f"^VM \d+: ", line)
+ if match is not None:
+ line = line[match.end():]
if line.startswith(HFTEST_LOG_PREFIX):
lines.append(line[len(HFTEST_LOG_PREFIX):])
return lines