From: Fiona Ebner <f.ebner@proxmox.com>
To: Maximiliano Sandoval <m.sandoval@proxmox.com>,
pve-devel@lists.proxmox.com
Subject: Re: [PATCH qemu-server 1/2] test: mock query-version qmp command
Date: Mon, 29 Jun 2026 16:12:05 +0200 [thread overview]
Message-ID: <ff14874d-2622-42f0-a350-c25434a4b42e@proxmox.com> (raw)
In-Reply-To: <20260624084201.168436-1-m.sandoval@proxmox.com>
Am 24.06.26 um 10:41 AM schrieb Maximiliano Sandoval:
> In the next commit we add a call to query-version to log the package
> version when starting a VM.
>
> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
> ---
> src/test/MigrationTest/QmMock.pm | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/test/MigrationTest/QmMock.pm b/src/test/MigrationTest/QmMock.pm
> index 311dbb39..fa5c9989 100644
> --- a/src/test/MigrationTest/QmMock.pm
> +++ b/src/test/MigrationTest/QmMock.pm
> @@ -54,6 +54,8 @@ my sub mocked_mon_cmd {
> return [];
> } elsif ($command eq 'qom-set') {
> return;
> + } elsif ($command eq 'query-version') {
> + return;
Please return an actual (dummy) result as the command would, to make the
testing more realistic.
> }
> die "mon_cmd (mocked) - implement me: $command";
> }
Please use a cover letter when you send more than one patch. This makes
using tools like b4 easier.
prev parent reply other threads:[~2026-06-29 14:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-24 8:40 [PATCH qemu-server 1/2] test: mock query-version qmp command Maximiliano Sandoval
2026-06-24 8:40 ` [PATCH qemu-server 2/2] vm start: log qemu version when starting a VM Maximiliano Sandoval
2026-06-24 8:44 ` Maximiliano Sandoval
2026-06-29 14:12 ` Fiona Ebner
2026-06-30 6:41 ` Maximiliano Sandoval
2026-06-30 7:05 ` superseded: " Maximiliano Sandoval
2026-06-29 14:12 ` Fiona Ebner [this message]
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=ff14874d-2622-42f0-a350-c25434a4b42e@proxmox.com \
--to=f.ebner@proxmox.com \
--cc=m.sandoval@proxmox.com \
--cc=pve-devel@lists.proxmox.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