Whamcloud - gitweb
LU-13970 tests: skip sanity test_427 on SLES12
authorLi Xi <lixi@ddn.com>
Wed, 3 Mar 2021 09:26:42 +0000 (17:26 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 7 Mar 2021 02:49:40 +0000 (02:49 +0000)
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 <adilger@whamcloud.com>
Change-Id: Ia6f2d57969d83d763ed91251dfaaf9929c3ebbe5
Reviewed-on: https://review.whamcloud.com/41851
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity.sh

index 0930932..ce8630e 100755 (executable)
@@ -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