Whamcloud - gitweb
LU-3715 tests: track_declares_assert only for ldiskfs 99/7399/2
authorAndreas Dilger <andreas.dilger@intel.com>
Tue, 20 Aug 2013 17:00:13 +0000 (11:00 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 Sep 2013 03:39:09 +0000 (03:39 +0000)
Only enable the track_declares_assert debugging for ldiskfs, or
it spews harmless but unsightly error messages during testing.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I824b56233ee3a58a7a1dc06a67e7ad803a05a536
Reviewed-on: http://review.whamcloud.com/7399
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/test-framework.sh

index 0734bf5..0c0866c 100644 (file)
@@ -3663,7 +3663,13 @@ check_and_setup_lustre() {
     fi
 
        if [ $(lower $OSD_TRACK_DECLARES_LBUG) == 'yes' ] ; then
     fi
 
        if [ $(lower $OSD_TRACK_DECLARES_LBUG) == 'yes' ] ; then
-               local facets="$(get_facets OST),$(get_facets MDS),mgs"
+               local facets=""
+               [ "$(facet_fstype ost1)" = "ldiskfs" ] &&
+                       facets="$(get_facets OST)"
+               [ "$(facet_fstype mds1)" = "ldiskfs" ] &&
+                       facets="$facets,$(get_facets MDS)"
+               [ "$(facet_fstype mgs)" = "ldiskfs" ] &&
+                       facets="$facets,mgs"
                local nodes="$(facets_hosts ${facets})"
                if [ -n "$nodes" ] ; then
                        do_nodes $nodes "$LCTL set_param \
                local nodes="$(facets_hosts ${facets})"
                if [ -n "$nodes" ] ; then
                        do_nodes $nodes "$LCTL set_param \