Whamcloud - gitweb
Branch b1_4
authoradilger <adilger>
Sun, 3 Jul 2005 05:34:31 +0000 (05:34 +0000)
committeradilger <adilger>
Sun, 3 Jul 2005 05:34:31 +0000 (05:34 +0000)
Fix do_facet to work properly with pdsh returning "hostname: result".

lustre/tests/conf-sanity.sh

index e0fde5d..1de6bf6 100644 (file)
@@ -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