Whamcloud - gitweb
LU-1540 tests: only run test for ldiskfs MDT
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 13 Sep 2012 22:43:10 +0000 (16:43 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 2 Oct 2012 03:59:06 +0000 (23:59 -0400)
Skip the test for LU-1540 (NUL symlink termination) on ZFS MDT
filesystems, since e2fsck won't work there.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ibba41352119f77b296e95520603b8d5527ab91b7
Reviewed-on: http://review.whamcloud.com/3987
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index da12150..c31107c 100644 (file)
@@ -506,6 +506,10 @@ test_17m() {
        [ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.2.0) ] &&
        [ $(lustre_version_code $SINGLEMDS) -le $(version_code 2.2.93) ] &&
                skip "MDS 2.2.0-2.2.93 do not NUL-terminate symlinks" && return
+
+       [ "$(facet_fstype $SINGLEMDS)" != "ldiskfs" ] &&
+               skip "only for ldiskfs MDT" && return 0
+
        mkdir -p $WDIR
        long_sym=$short_sym
        # create a long symlink file