Whamcloud - gitweb
LU-10723 tests: disable sanity 232b before 2.10.58 87/31487/2
authorQuentin Bouget <quentin.bouget@cea.fr>
Fri, 2 Mar 2018 08:22:25 +0000 (08:22 +0000)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 8 Mar 2018 17:36:16 +0000 (17:36 +0000)
The fix that allows test_232b of sanity.sh to pass was introduced in
lustre 2.10.58 so the test should not be run before this version.

Signed-off-by: Quentin Bouget <quentin.bouget@cea.fr>
Change-Id: I7c625e916bfd0d4a614cc9924670bffe4ba3b8b0
Reviewed-on: https://review.whamcloud.com/31487
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Wei Liu <wei3.liu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh

index c83bd97..58ebd66 100755 (executable)
@@ -14645,6 +14645,8 @@ test_232a() {
 run_test 232a "failed lock should not block umount"
 
 test_232b() {
+       [ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.10.58) ] ||
+               { skip "Need MDS version at least 2.10.58"; return; }
        mkdir -p $DIR/$tdir
        $LFS setstripe -c1 -i0 $DIR/$tdir/$tfile
        dd if=/dev/zero of=$DIR/$tdir/$tfile bs=1M count=1