mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
tests/functional: logs details of console interaction operations
When functional tests go wrong, it will often be related to the console interaction wait state. By logging the messages that we're looking for, and data we're about to be sending, it'll be easier to diagnose where tests are getting stuck. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20241121154218.1423005-13-berrange@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20241121165806.476008-13-alex.bennee@linaro.org>
This commit is contained in:
parent
9bcfead1ee
commit
6f0942b723
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,9 @@ def _console_interaction(test, success_message, failure_message,
|
|||
vm = test.vm
|
||||
console = vm.console_file
|
||||
console_logger = logging.getLogger('console')
|
||||
test.log.debug(
|
||||
f"Console interaction: success_msg='{success_message}' " +
|
||||
f"failure_msg='{failure_message}' send_string='{send_string}'")
|
||||
while True:
|
||||
if send_string:
|
||||
vm.console_socket.sendall(send_string.encode())
|
||||
|
|
Loading…
Add table
Reference in a new issue