Skip to content

Commit

Permalink
edk2_basic: Add edk2 output info checkpoint
Browse files Browse the repository at this point in the history
Add edk2 output information checkpoint due to product issue

Signed-off-by: zhenyzha <zhenyzha@redhat.com>
  • Loading branch information
zhenyzha committed Oct 8, 2024
1 parent af63fc5 commit 3e92abb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qemu/tests/edk2_basic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
import time

from virttest import error_context
Expand Down Expand Up @@ -33,6 +34,9 @@ def run(test, params, env):
test.fail("No highlighted entry was detected "
"the boot was abnormal.")
error_context.context("Check edk2 output information", test.log.info)
if re.findall("start failed", output[1], re.I | re.M):
test.fail("edk2 failed to start, "
"please check the serial log for details.")
if len(output[1].splitlines()) > line_numbers:
test.fail("Warning edk2 line count exceeds %d." % line_numbers)
time.sleep(2)
Expand Down

0 comments on commit 3e92abb

Please sign in to comment.