From a1396d61f7a204d33fc11c6e6c9c2aff7dc0bdf7 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Thu, 19 Apr 2018 13:40:57 +0300 Subject: [PATCH] LU-10928 tests: sanity/133b should wait a bit to invalidate cache in obd_statfs() Test-Parameters: trivial Change-Id: I08283542962e4b88ca4b5dcde4dfcc58316c1bba Signed-off-by: Alex Zhuravlev Reviewed-on: https://review.whamcloud.com/32069 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Saurabh Tandan Reviewed-by: Andreas Dilger --- lustre/tests/sanity.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index cf62a37..16fd9d9 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -10711,6 +10711,9 @@ test_133b() { ls -l ${testdir}/${tfile} > /dev/null|| error "ls failed" check_stats $SINGLEMDS "getattr" 1 fi + # Sleep to avoid a cached response. + #define OBD_STATFS_CACHE_SECONDS 1 + sleep 2 $LFS df || error "lfs failed" check_stats $SINGLEMDS "statfs" 1 -- 1.8.3.1