From 63b5812e4e3b50898769c5badf533557293ffe2c Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Thu, 9 Dec 2021 21:50:37 +0300 Subject: [PATCH] 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 --- lustre/tests/test-framework.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.8.3.1