From: qemu_oss--- via <qemu-devel@nongnu.org>
To: qemu-devel@nongnu.org
Cc: Laurent Vivier <lvivier@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Thomas Huth <thuth@redhat.com>
Subject: [PATCH 5/5] tests/qtest/qos-test: dump QEMU command if verbose
Date: Wed, 27 Jan 2021 00:26:16 +0100 [thread overview]
Message-ID: <110bef3595cb841dfa1b86733c174ac9774eb37e.1611704181.git.qemu_oss@crudebyte.com> (raw)
In-Reply-To: <cover.1611704181.git.qemu_oss@crudebyte.com>
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>
---
tests/qtest/qos-test.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/qtest/qos-test.c b/tests/qtest/qos-test.c
index b279b6f816..f97d0a08fd 100644
--- a/tests/qtest/qos-test.c
+++ b/tests/qtest/qos-test.c
@@ -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
--
2.20.1
next prev parent reply other threads:[~2021-01-27 0:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-26 23:36 [PATCH 0/5] enhance debugging with qtest framework qemu_oss--- via
2021-01-26 23:00 ` [PATCH 1/5] libqos/qgraph: add qos_node_create_driver_named() qemu_oss--- via
2021-01-26 23:04 ` [PATCH 2/5] libqos/qgraph_internal: add qos_printf() and qos_printf_literal() qemu_oss--- via
2021-01-28 10:13 ` Thomas Huth
2021-02-09 13:36 ` Christian Schoenebeck
2021-01-26 23:08 ` [PATCH 3/5] tests/qtest/qos-test: dump qos graph if verbose qemu_oss--- via
2021-01-26 23:17 ` [PATCH 4/5] tests/qtest/qos-test: dump environment variables " qemu_oss--- via
2021-01-26 23:26 ` qemu_oss--- via [this message]
2021-02-09 13:57 ` [PATCH 0/5] enhance debugging with qtest framework Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=110bef3595cb841dfa1b86733c174ac9774eb37e.1611704181.git.qemu_oss@crudebyte.com \
--to=qemu-devel@nongnu.org \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu_oss@crudebyte.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).