Skip to content

Commit

Permalink
Merge pull request autotest#4174 from zhenyzha/edk2_checkpoint
Browse files Browse the repository at this point in the history
edk2_basic: Add edk2 output info checkpoint
  • Loading branch information
XueqiangWei authored Oct 16, 2024
2 parents 690d84a + 3e92abb commit c54afbe
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 c54afbe

Please sign in to comment.