[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ocfs2-devel
Subject:    Re: [Ocfs2-devel] [PATCH 01/17] ocfs2 test: correct the check on testcase if supported
From:       Junxiao Bi <junxiao.bi () oracle ! com>
Date:       2017-03-13 8:11:26
Message-ID: 2cfc6aba-c309-46d9-78cc-448b82e40a15 () oracle ! com
[Download RAW message or body]


On 12/13/2016 01:29 PM, Eric Ren wrote:
> Signed-off-by: Eric Ren <zren@suse.com>
Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com>

> ---
> programs/python_common/multiple_run.sh   | 2 +-
> programs/python_common/single_run-WIP.sh | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/programs/python_common/multiple_run.sh \
> b/programs/python_common/multiple_run.sh index dd9603f..c4a7da9 100755
> --- a/programs/python_common/multiple_run.sh
> +++ b/programs/python_common/multiple_run.sh
> @@ -201,7 +201,7 @@ f_setup()
> 	fi
> 
> 	SUPPORTED_TESTCASES="all xattr inline reflink write_append_truncate multi_mmap \
>                 create_racer flock_unit cross_delete open_delete lvb_torture"
> -	for cas in ${TESTCASES}; do
> +	for cas in `${ECHO} ${TESTCASES} | ${SED} "s:,: :g"`; do
> 		echo ${SUPPORTED_TESTCASES} | grep -sqw $cas
> 		if [ $? -ne 0 ]; then
> 			echo "testcase [${cas}] not supported."
> diff --git a/programs/python_common/single_run-WIP.sh \
> b/programs/python_common/single_run-WIP.sh index 5a8fae1..fe0056c 100755
> --- a/programs/python_common/single_run-WIP.sh
> +++ b/programs/python_common/single_run-WIP.sh
> @@ -997,7 +997,7 @@ fi
> SUPPORTED_TESTCASES="all create_and_open directaio fillverifyholes renamewriterace \
> aiostress\ filesizelimits mmaptruncate buildkernel splice sendfile mmap \
> reserve_space inline xattr\ reflink mkfs tunefs backup_super filecheck"
> -for cas in ${TESTCASES}; do
> +for cas in `${ECHO} ${TESTCASES} | ${SED} "s:,: :g"`; do
> 	echo ${SUPPORTED_TESTCASES} | grep -sqw $cas
> 	if [ $? -ne 0 ]; then
> 		echo "testcase [${cas}] not supported."
> 


_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic