From: Alex Zhuravlev Date: Thu, 19 Apr 2018 10:40:57 +0000 (+0300) Subject: LU-10928 tests: sanity/133b should wait a bit X-Git-Tag: 2.11.54~44 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=a1396d61f7a204d33fc11c6e6c9c2aff7dc0bdf7 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 --- 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