[LTP] [PATCH] memcg_lib.sh: cosmetic fix for orig_memory_use_hierarchy variable

Xiao Yang yangx.jy@cn.fujitsu.com
Wed May 24 11:38:09 CEST 2017


Hi

Ping :-)

Thanks,
Xiao Yang
On 2017/04/28 9:52, Xiao Yang wrote:
> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
> ---
>  testcases/kernel/controllers/memcg/functional/memcg_lib.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
> index b785fe3..d4724c3 100755
> --- a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
> +++ b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
> @@ -506,7 +506,7 @@ setup_test()
>  	# while there are distributions (RHEL7U0Beta for example) that sets
>  	# it to 1.
>  	orig_memory_use_hierarchy=$(cat /dev/memcg/memory.use_hierarchy)
> -	if [ -z "orig_memory_use_hierarchy" ];then
> +	if [ -z "$orig_memory_use_hierarchy" ];then
>  		tst_resm TINFO "cat /dev/memcg/memory.use_hierarchy failed"
>  	elif [ "$orig_memory_use_hierarchy" = "0" ];then
>  		orig_memory_use_hierarchy=""





More information about the ltp mailing list