diff options
author | Wainer dos Santos Moschetta | 2021-03-09 16:35:07 +0100 |
---|---|---|
committer | Cleber Rosa | 2021-03-17 01:54:35 +0100 |
commit | 1cf54443d9c5d6e8ce28dc299f2a22c7e3458bb4 (patch) | |
tree | b896d4cbea50c32c43b0f9f438f90d1fbfdf7641 | |
parent | Merge remote-tracking branch 'remotes/kraxel/tags/usb-20210315-pull-request' ... (diff) | |
download | qemu-1cf54443d9c5d6e8ce28dc299f2a22c7e3458bb4.tar.gz qemu-1cf54443d9c5d6e8ce28dc299f2a22c7e3458bb4.tar.xz qemu-1cf54443d9c5d6e8ce28dc299f2a22c7e3458bb4.zip |
tests/acceptance: Print expected message on wait_for_console_pattern
For the sake of improve debuggability of tests which use the
wait_for_console_pattern(), this changed the _console_interaction() so that
the expected message is printed if the test fail.
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20210309153507.1905682-1-wainersm@redhat.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
-rw-r--r-- | tests/acceptance/avocado_qemu/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/avocado_qemu/__init__.py index df167b142c..ed338caaba 100644 --- a/tests/acceptance/avocado_qemu/__init__.py +++ b/tests/acceptance/avocado_qemu/__init__.py @@ -97,7 +97,8 @@ def _console_interaction(test, success_message, failure_message, break if failure_message and failure_message in msg: console.close() - fail = 'Failure message found in console: %s' % failure_message + fail = 'Failure message found in console: "%s". Expected: "%s"' % \ + (failure_message, success_message) test.fail(fail) def interrupt_interactive_console_until_pattern(test, success_message, |