[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 1/4] iotests: fix exclusion option
From: |
Fam Zheng |
Subject: |
Re: [Qemu-devel] [PATCH v3 1/4] iotests: fix exclusion option |
Date: |
Wed, 3 Jun 2015 14:50:41 +0800 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, 06/02 15:18, 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 awk command.
>
> Signed-off-by: John Snow <address@hidden>
> ---
Reviewed-by: Fam Zheng <address@hidden>
> 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 1030aaf..84b6f16 100644
> --- a/tests/qemu-iotests/common
> +++ b/tests/qemu-iotests/common
> @@ -83,7 +83,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
> + awk '/^[0-9]{3,}/ {print $1}' "${source_iotests}/group" > $tmp.list
> 2>/dev/null
> group_list=`sed -n <"$source_iotests/group" -e 's/$/ /' -e
> "/^[0-9][0-9][0-9].* $r /"'{
> s/ .*//p
> }'`
> --
> 2.1.0
>
- [Qemu-devel] [PATCH v3 0/4] iotests: skip tests with unchanged dependencies, John Snow, 2015/06/02
- [Qemu-devel] [PATCH v3 1/4] iotests: fix exclusion option, John Snow, 2015/06/02
- Re: [Qemu-devel] [PATCH v3 1/4] iotests: fix exclusion option,
Fam Zheng <=
- [Qemu-devel] [PATCH v3 2/4] iotests: Add dependency info to groups list, John Snow, 2015/06/02
- [Qemu-devel] [PATCH v3 3/4] iotests: add timestamp skip feature, John Snow, 2015/06/02
- [Qemu-devel] [PATCH v3 4/4] iotests: clarify help text, John Snow, 2015/06/02
- Re: [Qemu-devel] [PATCH v3 0/4] iotests: skip tests with unchanged dependencies, John Snow, 2015/06/12
- Re: [Qemu-devel] [PATCH v3 0/4] iotests: skip tests with unchanged dependencies, John Snow, 2015/06/23