diff mbox

[01/17] ocfs2 test: correct the check on testcase if supported

Message ID 1481606975-13186-2-git-send-email-zren@suse.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zhen Ren Dec. 13, 2016, 5:29 a.m. UTC
Signed-off-by: Eric Ren <zren@suse.com>
---
 programs/python_common/multiple_run.sh   | 2 +-
 programs/python_common/single_run-WIP.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Junxiao Bi March 13, 2017, 8:11 a.m. UTC | #1
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."
>
diff mbox

Patch

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."