All of lore.kernel.org
 help / color / mirror / Atom feed
From: Max Reitz <mreitz@redhat.com>
To: Hao QingFeng <haoqf@linux.vnet.ibm.com>, qemu-block@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
	Sascha Silbe <silbe@linux.vnet.ibm.com>,
	qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v4 0/3] iotests: Fix test 162
Date: Wed, 12 Oct 2016 21:46:11 +0200	[thread overview]
Message-ID: <59343543-96c7-ebc1-5889-7259df3a2c90@redhat.com> (raw)
In-Reply-To: <1b3f7281-eaa6-586b-0f3c-f30cebf88322@linux.vnet.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]

On 12.10.2016 10:55, Hao QingFeng wrote:
> Max,
> 
> Just a common question for this case, if sshx block driver wasn't built
> into qemu-img, this case would fail as below:

Good point, and thanks for bringing it up, but it's not directly linked
to this series other than by its subject, of course, so I'd rather add a
fix on top.

> exec /home/haoqf/KVMonz/qemu/tests/qemu-iotests/../../qemu-img info
> --image-opts driver=ssh,host=localhost,port=0.42,path=/foo
> qemu-img: Could not open
> 'driver=ssh,host=localhost,port=0.42,path=/foo': Unknown driver 'ssh'
> 
> Adding 162.notrun can bypass this case but it would skip it even if
> qemu-img has sshx block driver, in which case I think it should be run.
> 
> So How about adding a script to dynamically check at runtime if the
> current env qemu-img can meet the requirement to run the test or not?

Unfortunately, the list of block drivers listed by will not contain ssh
if ssh is built as a module, which is possible.

This is a bug that should be fixed, but I'd rather do so in a separate
series from this one.

In any case, once it is fixed I'd rather just take the approach quorum
tests take already (e.g. test 081), which is something like:

test_ssh=$($QEMU_IMG --help | grep '^Supported formats:.* ssh\( \|$\)')
[ "$test_ssh" = "" ] && _notrun "ssh support required"

Max


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 480 bytes --]

  reply	other threads:[~2016-10-12 19:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28 20:46 [Qemu-devel] [PATCH v4 0/3] iotests: Fix test 162 Max Reitz
2016-09-28 20:46 ` [Qemu-devel] [PATCH v4 1/3] qemu-nbd: Add --fork option Max Reitz
2016-09-28 20:46 ` [Qemu-devel] [PATCH v4 2/3] iotests: Remove raciness from 162 Max Reitz
2016-09-28 20:46 ` [Qemu-devel] [PATCH v4 3/3] iotests: Do not rely on unavailable domains in 162 Max Reitz
2016-10-12  8:55 ` [Qemu-devel] [Qemu-block] [PATCH v4 0/3] iotests: Fix test 162 Hao QingFeng
2016-10-12 19:46   ` Max Reitz [this message]
2016-10-13  5:20     ` Hao QingFeng
2016-10-15 17:27       ` Max Reitz
2016-10-24  6:23         ` Hao QingFeng
2016-10-17 17:07 ` [Qemu-devel] " Max Reitz
2016-10-18  9:36   ` Kevin Wolf
2016-10-24 14:30     ` [Qemu-devel] [Qemu-block] " Kevin Wolf

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=59343543-96c7-ebc1-5889-7259df3a2c90@redhat.com \
    --to=mreitz@redhat.com \
    --cc=haoqf@linux.vnet.ibm.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=silbe@linux.vnet.ibm.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.