From: Lokesh Nagappa Jaliminche Date: Thu, 6 Aug 2015 10:48:44 +0000 (+0530) Subject: LU-6966 test: Dash in FSNAME causes warning in testframework X-Git-Tag: 2.8.51~16 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e6d1952c68fc607c2f8e13ea6752dca0c983f2cb;ds=sidebyside LU-6966 test: Dash in FSNAME causes warning in testframework The FSNAME with dash was causing warning in test-framework.sh. These are specifically due to use of FSNAME with dash in l-value of the export statement. So export statement has been modified such that it will not to include dash in its l-value. Seagate-bug-id: MRP-2171 Signed-off-by: Lokesh Nagappa Jaliminche Signed-off-by: Bhagyesh Dudhediya Change-Id: Ia4d690c6529b287bb008f11a57e8131a2facfba4 Reviewed-on: http://review.whamcloud.com/15925 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index dd649f0..48795c0 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -6073,19 +6073,21 @@ create_pool() { } add_pool_to_list () { - local fsname=${1%%.*} - local poolname=${1##$fsname.} + local fsname=${1%%.*} + local poolname=${1##$fsname.} - local listvar=${fsname}_CREATED_POOLS - eval export ${listvar}=$(expand_list ${!listvar} $poolname) + local listvar=${fsname}_CREATED_POOLS + local temp=${listvar}=$(expand_list ${!listvar} $poolname) + eval export $temp } remove_pool_from_list () { - local fsname=${1%%.*} - local poolname=${1##$fsname.} + local fsname=${1%%.*} + local poolname=${1##$fsname.} - local listvar=${fsname}_CREATED_POOLS - eval export ${listvar}=$(exclude_items_from_list ${!listvar} $poolname) + local listvar=${fsname}_CREATED_POOLS + local temp=${listvar}=$(exclude_items_from_list ${!listvar} $poolname) + eval export $temp } destroy_pool_int() {