From: Eric Blake <eblake@redhat.com>
To: John Snow <jsnow@redhat.com>, qemu-devel@nongnu.org
Cc: kwolf@redhat.com, famz@redhat.com
Subject: Re: [Qemu-devel] [PATCH 1/4] iotests: fix exclusion option
Date: Fri, 22 May 2015 14:31:15 -0600 [thread overview]
Message-ID: <555F9213.1050906@redhat.com> (raw)
In-Reply-To: <1432325832-12887-2-git-send-email-jsnow@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]
On 05/22/2015 02:17 PM, John Snow wrote:
> If you are running out-of-tree, the -x option to exclude
> a certain iotest is broken.
>
> Replace porcelain usage of ls with a sturdier grep command.
>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
> tests/qemu-iotests/common | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common
> index 1e556bb..c4d0742 100644
> --- a/tests/qemu-iotests/common
> +++ b/tests/qemu-iotests/common
> @@ -82,7 +82,8 @@ s/ .*//p
> elif $xgroup
> then
> # arg after -x
> - [ ! -s $tmp.list ] && ls [0-9][0-9][0-9] [0-9][0-9][0-9][0-9] >$tmp.list 2>/dev/null
> + # Populate $tmp.list with all tests
> + grep -oh -E "^([0-9]{3,})" "${source_iotests}/group" > $tmp.list 2>/dev/null
'grep -oh' is a GNU-ism; is it going to cause grief on BSD platforms?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-05-22 20:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-22 20:17 [Qemu-devel] [PATCH 0/4] iotests: skip tests with unchanged dependencies John Snow
2015-05-22 20:17 ` [Qemu-devel] [PATCH 1/4] iotests: fix exclusion option John Snow
2015-05-22 20:31 ` Eric Blake [this message]
2015-05-22 20:32 ` John Snow
2015-05-22 22:48 ` John Snow
2015-05-22 20:17 ` [Qemu-devel] [PATCH 2/4] iotests: Add dependency info to groups list John Snow
2015-05-28 3:34 ` Fam Zheng
2015-05-28 16:21 ` John Snow
2015-05-22 20:17 ` [Qemu-devel] [PATCH 3/4] iotests: add timestamp skip feature John Snow
2015-05-28 3:30 ` Fam Zheng
2015-05-22 20:17 ` [Qemu-devel] [PATCH 4/4] iotests: clarify help text John Snow
2015-05-28 3:22 ` 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=555F9213.1050906@redhat.com \
--to=eblake@redhat.com \
--cc=famz@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).