From: Elena Gryaznova Date: Thu, 9 Dec 2021 18:50:37 +0000 (+0300) Subject: LU-15356 tests: get rid of extra spaces in PERM_CMD X-Git-Tag: 2.14.57~83 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F45813%2F2;p=fs%2Flustre-release.git LU-15356 tests: get rid of extra spaces in PERM_CMD The tests use the PERM_CMD set to "set_param -P" with extra space before -P" fail because they do not expect these allowable extra spaces: [[ $PERM_CMD = *"set_param -P"* ]] Fixes: b9c359a70d ("LU-7004 tests: move from lctl conf_param to lctl set_param -P") Signed-off-by: Elena Gryaznova Change-Id: Ia18e32baa56b7dac1f4e15777bfcc4b9ab1048fb Reviewed-on: https://review.whamcloud.com/45813 Tested-by: jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index e1af875..7f2457d 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -303,7 +303,7 @@ init_test_env() { [ ! -f "$KSOCKLND_CONFIG" ] && export KSOCKLND_CONFIG=$(which ksocklnd-config 2> /dev/null) - export PERM_CMD=${PERM_CMD:-"$LCTL conf_param"} + export PERM_CMD=$(echo ${PERM_CMD:-"$LCTL conf_param"}) export L_GETIDENTITY=${L_GETIDENTITY:-"$LUSTRE/utils/l_getidentity"} if [ ! -f "$L_GETIDENTITY" ]; then