qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: "Benoît Canet" <benoit.canet@irqsave.net>
Cc: kwolf@redhat.com, mreitz@redhat.com, qemu-devel@nongnu.org,
	stefanha@redhat.com, Benoit Canet <benoit@irqsave.net>
Subject: Re: [Qemu-devel] [PATCH V2 3/3] qemu-io-test: Disable Quorum test when not compiled in.
Date: Sat, 22 Feb 2014 15:38:15 +0800	[thread overview]
Message-ID: <20140222073815.GA16767@T430.redhat.com> (raw)
In-Reply-To: <1393032048-17982-4-git-send-email-benoit.canet@irqsave.net>

On Sat, 02/22 02:20, Benoît Canet wrote:
> Quorum is not compiled by default: make the quorum 081 test aware of this.
> 
> Signed-off-by: Benoit Canet <benoit@irqsave.net>
> ---
>  tests/qemu-iotests/081 | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/tests/qemu-iotests/081 b/tests/qemu-iotests/081
> index f053f11..c1078f6 100755
> --- a/tests/qemu-iotests/081
> +++ b/tests/qemu-iotests/081
> @@ -56,6 +56,9 @@ function run_qemu()
>      do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qmp | _filter_qemu_io
>  }
>  
> +test_quorum=$(qemu-img --help|grep quorum)
> +[ "$test_quorum" = "" ] && _supported_fmt quorum
> +

How does this disable the test? When quorum is not compiled, the two lines are
no-op. Did you test it?

qemu-img should be $QEMU_IMG.

I think you mean this:

    $QEMU_IMG --help | grep -q quorum && _not_run "quorum is not compiled"

Thanks,
Fam

  reply	other threads:[~2014-02-22  7:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-22  1:20 [Qemu-devel] [PATCH V2 0/3] Fix some quorum nits after merge Benoît Canet
2014-02-22  1:20 ` [Qemu-devel] [PATCH V2 1/3] qmp: Fix BlockdevOptionQuorum Benoît Canet
2014-02-22  1:20 ` [Qemu-devel] [PATCH V2 2/3] qmp: Make Quorum error events more palatable Benoît Canet
2014-02-22  1:42   ` Eric Blake
2014-02-22  2:09     ` Benoît Canet
2014-02-22  2:15       ` Eric Blake
2014-02-22  1:20 ` [Qemu-devel] [PATCH V2 3/3] qemu-io-test: Disable Quorum test when not compiled in Benoît Canet
2014-02-22  7:38   ` Fam Zheng [this message]
2014-02-22 11:58     ` Benoît Canet
2014-02-22 16:00       ` Fam Zheng

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=20140222073815.GA16767@T430.redhat.com \
    --to=famz@redhat.com \
    --cc=benoit.canet@irqsave.net \
    --cc=benoit@irqsave.net \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@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).