From a90b4a970d497f2702fe254de9e6daffbd114105 Mon Sep 17 00:00:00 2001 From: Li Xi Date: Wed, 3 Mar 2021 17:26:42 +0800 Subject: [PATCH] LU-13970 tests: skip sanity test_427 on SLES12 For SLES12 sanity.sh test_427 cannot determine the number of objects in the lustre_inode_cache slab, so skip this old distro. Test-Parameters: trivial testlist=sanity env=ONLY=427 clientdistro=sles12sp5 Fixes: acbc5b5bb2b5 ("LU-13970 llite: add option to disable Lustre inode cache") Signed-off-by: Andreas Dilger Change-Id: Ia6f2d57969d83d763ed91251dfaaf9929c3ebbe5 Reviewed-on: https://review.whamcloud.com/41851 Tested-by: jenkins Tested-by: Maloo --- lustre/tests/sanity.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 0930932..ce8630e 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -23906,6 +23906,9 @@ test_427() { [[ -n "$($LCTL list_param llite.*.inode_cache 2>/dev/null)" ]] || skip "$d inode cache not supported" + [[ -n "$(num_objects)" ]] || + skip "can't determine number of cached inodes" + $LCTL set_param llite.*.inode_cache=0 stack_trap "$LCTL set_param llite.*.inode_cache=1" @@ -23914,11 +23917,15 @@ test_427() { local before local after + echo "before lru: $(num_objects)" cancel_lru_locks mdc test_mkdir $DIR/$tdir || error "mkdir $tdir" + echo "before create: $(num_objects)" createmany -m $DIR/$tdir/f $count createmany -d $DIR/$tdir/d $count + echo "before ls: $(num_objects)" ls -l $DIR/$tdir > /dev/null + echo "after ls: $(num_objects)" before=$(num_objects) cancel_lru_locks mdc -- 1.8.3.1