From 55c468ce5dcc2bd59b4452098918475161e8349f Mon Sep 17 00:00:00 2001 From: James Nunez Date: Tue, 24 Sep 2013 14:29:57 -0600 Subject: [PATCH 1/1] LU-3664 test: get_param atime_diff returns multiple values In sanityn test 23, lctl get_param mdd.*. time_diff can return multiple values. This can happen with there are multiple MDTs mounted. In order to deal with multiple values, we run the return value of lctl get_param through "head -1". Test-Parameters: mdtcount=2 mdscount=2 Signed-off-by: James Nunez Change-Id: Ie830429af38e1e4bce084aa1e6490bbadf366920 Reviewed-on: http://review.whamcloud.com/7750 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Jian Yu --- lustre/tests/sanityn.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index 21f56fa..1170b2d 100644 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -489,7 +489,8 @@ test_21() { # Bug 5907 run_test 21 " Try to remove mountpoint on another dir ====" test_23() { # Bug 5972 - local at_diff=$(do_facet $SINGLEMDS $LCTL get_param -n mdd.*.atime_diff) + local at_diff=$(do_facet $SINGLEMDS \ + $LCTL get_param -n mdd.*MDT0000*.atime_diff | head -1) echo "atime should be updated while another read" > $DIR1/$tfile # clear the lock(mode: LCK_PW) gotten from creating operation -- 1.8.3.1