Whamcloud - gitweb
b=20094
authorgrev <grev>
Thu, 9 Jul 2009 08:44:23 +0000 (08:44 +0000)
committergrev <grev>
Thu, 9 Jul 2009 08:44:23 +0000 (08:44 +0000)
i=Alexander.Zarochentsev (Zam)
test_121: ignore useless dd output

lustre/tests/sanity.sh

index efe272d..48802dd 100644 (file)
@@ -5032,10 +5032,10 @@ test_120g() {
 run_test 120g "Early Lock Cancel: performance test ============="
 
 test_121() { #bug 10589
-       writes=$(LANG=C dd if=/dev/zero of=$DIR/$tfile count=1 2>&1 | awk -F '+' '/out/ {print $1}')
+       writes=$(LANG=C dd if=/dev/zero of=$DIR/$tfile count=1 2>&1 | awk -F '+' '/out$/ {print $1}')
        lctl set_param fail_loc=0x310
        cancel_lru_locks osc > /dev/null
-       reads=$(LANG=C dd if=$DIR/$tfile of=/dev/null 2>&1 | awk -F '+' '/in/ {print $1}')
+       reads=$(LANG=C dd if=$DIR/$tfile of=/dev/null 2>&1 | awk -F '+' '/in$/ {print $1}')
        lctl set_param fail_loc=0
        [ "$reads" -eq "$writes" ] || error "read" $reads "blocks, must be" $writes
 }