Skip to content

Commit

Permalink
tests/qtest/qos-test: dump QEMU command if verbose
Browse files Browse the repository at this point in the history
If qtests are run in verbose mode (i.e. if --verbose CL argument
was provided) then print the assembled qemu command line for each
test.

Use qos_printf() instead of g_test_message() to avoid the latter
cluttering the output.

Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <110bef3595cb841dfa1b86733c174ac9774eb37e.1611704181.git.qemu_oss@crudebyte.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
cschoenebeck authored and bonzini committed Feb 16, 2021
1 parent 093360d commit b0019c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/qtest/qos-test.c
Expand Up @@ -89,6 +89,9 @@ static void qos_set_machines_devices_available(void)

static void restart_qemu_or_continue(char *path)
{
if (g_test_verbose()) {
qos_printf("Run QEMU with: '%s'\n", path);
}
/* compares the current command line with the
* one previously executed: if they are the same,
* don't restart QEMU, if they differ, stop previous
Expand Down

0 comments on commit b0019c9

Please sign in to comment.