From 4f2a80a577728cb3c759a57112014db23de3f902 Mon Sep 17 00:00:00 2001 From: Chennaiah Palla Date: Tue, 27 Oct 2015 17:48:04 +0530 Subject: [PATCH] LU-7342 test: test_85a: unused locks error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When we changed FSNAME from lustre to lustre-1, $3 will give “addr” value “clilov” instead of getting proper address, due to this we are getting "Found no match" error. But if we change $3 to $NF getting addr value correctly. Generally NF will give total number of fields in the current input, but in our case it happens to be last field. Test-Parameters: trivial testlist=replay-single Seagate-bug-id: MRP-2791 Signed-off-by: Chennaiah Palla Change-Id: I1d5e95425fdf848907cb9617494aa1c7971d90a6 Reviewed-on: http://review.whamcloud.com/16953 Reviewed-by: Jian Yu Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Saurabh Tandan Reviewed-by: Oleg Drokin --- lustre/tests/replay-single.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index 80d8d0d..f0824b5 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -2952,7 +2952,7 @@ test_85a() { #bug 16774 done lov_id=$(lctl dl | grep "clilov") - addr=$(echo $lov_id | awk '{print $4}' | awk -F '-' '{print $3}') + addr=$(echo $lov_id | awk '{print $4}' | awk -F '-' '{print $NF}') count=$(lctl get_param -n \ ldlm.namespaces.*MDT0000*$addr.lock_unused_count) echo "before recovery: unused locks count = $count" -- 1.8.3.1