avocado_qemu: add exec_command function
authorWillian Rampazzo <willianr@redhat.com>
Wed, 3 Mar 2021 20:53:19 +0000 (17:53 -0300)
committerCleber Rosa <crosa@redhat.com>
Wed, 17 Mar 2021 02:17:33 +0000 (22:17 -0400)
commitcd093d5a2c92c34657c328affcb6ce5413cd205e
treee92512bf552119a1d35fd35599ca5cf6101e527c
parentf9cc00346d3e572ac128bc9b932b02c512490271
avocado_qemu: add exec_command function

Sometimes a test needs to send a command to a console without waiting
for a pattern as a result, or the command issued do not produce any kind
of output, like, for example, a `mount` command.

This introduces the `exec_command` function to the avocado_qemu,
allowing the test to send a command to the console without the need to
match a pattern produced as a result.

Signed-off-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20210303205320.146047-2-willianr@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
tests/acceptance/avocado_qemu/__init__.py