From: adilger Date: Sun, 3 Jul 2005 05:34:31 +0000 (+0000) Subject: Branch b1_4 X-Git-Tag: v1_7_140~1^12~3^2~55^5~119 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=62c492940c715dc8924f705b452dfc64c6a56f6f;p=fs%2Flustre-release.git Branch b1_4 Fix do_facet to work properly with pdsh returning "hostname: result". --- diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index e0fde5d..1de6bf6 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -75,7 +75,7 @@ umount_client() { manual_umount_client(){ echo "manual umount lustre on ${MOUNTPATH}...." - do_facet client "umount $MOUNT" + do_facet client "umount $MOUNT" } setup() { @@ -341,18 +341,18 @@ test_9() { # check lconf --ptldebug/subsystem overriding lmc --ptldebug/subsystem start_ost start_mds - CHECK_PTLDEBUG="`do_facet mds cat /proc/sys/portals/debug`" - if [ $CHECK_PTLDEBUG = "3" ]; then + CHECK_PTLDEBUG="`do_facet mds sysctl portals.debug | cut -d= -f2`" + if [ "$CHECK_PTLDEBUG" = "3" ]; then echo "lconf --debug success" else echo "lconf --debug: want 3, have $CHECK_PTLDEBUG" return 1 fi - CHECK_SUBSYSTEM="`do_facet mds cat /proc/sys/portals/subsystem_debug`" - if [ $CHECK_SUBSYSTEM = "20" ]; then + CHECK_SUBSYS="`do_facet mds sysctl portals.subsystem_debug|cut -d= -f2`" + if [ $CHECK_SUBSYS = "20" ]; then echo "lconf --subsystem success" else - echo "lconf --subsystem: want 20, have $CHECK_SUBSYSTEM" + echo "lconf --subsystem: want 20, have $CHECK_SUBSYS" return 1 fi mount_client $MOUNT