Skip to content

Commit

Permalink
boot_integration: fix test for unexpected control codes
Browse files Browse the repository at this point in the history
aexpect will raise an error if the console contains certain control
codes, s. avocado-framework/aexpect#133

This happens in `get_stripped_output`. By using `get_output`, this can't
happen and the test passes.

Signed-off-by: Sebastian Mitterle <[email protected]>
  • Loading branch information
smitterl committed Jan 15, 2025
1 parent 006c44e commit 3ce3f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvirt/tests/src/bios/boot_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def console_check(vm, pattern, debug_log=False):
:return: function returning true if console output matches pattern
"""
def _matches():
output = vm.serial_console.get_stripped_output()
output = vm.serial_console.get_output()
matches = re.search(pattern, output, re.S)
if debug_log:
logging.debug("Checked for '%s' in '%s'", pattern, output)
Expand Down

0 comments on commit 3ce3f60

Please sign in to comment.