From: James Nunez Date: Tue, 24 Sep 2013 20:29:57 +0000 (-0600) Subject: LU-3664 test: get_param atime_diff returns multiple values X-Git-Tag: 2.5.0~37 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=55c468ce5dcc2bd59b4452098918475161e8349f;p=fs%2Flustre-release.git 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 --- 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