Whamcloud - gitweb
Branch HEAD
authorscjody <scjody>
Sat, 31 Mar 2007 00:12:36 +0000 (00:12 +0000)
committerscjody <scjody>
Sat, 31 Mar 2007 00:12:36 +0000 (00:12 +0000)
Use eval when changing debug settings to avoid shell-related failures.

b=12081
r=adilger

lustre/tests/acceptance-small.sh

index 2aec966..39dcbff 100755 (executable)
@@ -21,8 +21,8 @@ fi
 [ "$TMP" ] || TMP=/tmp
 [ "$COUNT" ] || COUNT=1000
 [ "$DEBUG_LVL" ] || DEBUG_LVL=0
-[ "$DEBUG_OFF" ] || DEBUG_OFF="sysctl -w lnet.debug=$DEBUG_LVL"
-[ "$DEBUG_ON" ] || DEBUG_ON="sysctl -w lnet.debug=0x33f0484"
+[ "$DEBUG_OFF" ] || DEBUG_OFF="eval sysctl -w lnet.debug=\"$DEBUG_LVL\""
+[ "$DEBUG_ON" ] || DEBUG_ON="eval sysctl -w lnet.debug=0x33f0484"
 
 
 LIBLUSTRE=${LIBLUSTRE:-../liblustre}