[Ocfs2-devel] [PATCH 01/17] ocfs2 test: correct the check on testcase if supported
Junxiao Bi
junxiao.bi at oracle.com
Mon Mar 13 01:11:26 PDT 2017
On 12/13/2016 01:29 PM, Eric Ren wrote:
> Signed-off-by: Eric Ren <zren at suse.com>
Reviewed-by: Junxiao Bi <junxiao.bi at 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."
>
More information about the Ocfs2-devel
mailing list