From 986ed03aba381214b8d53dc08415a388f28277a1 Mon Sep 17 00:00:00 2001 From: grev Date: Thu, 19 Feb 2009 22:34:54 +0000 Subject: [PATCH] b=18521 i=Alex.Zhuravlev sanity test_80, t-f localize var fix --- lustre/tests/sanity.sh | 6 +++--- lustre/tests/test-framework.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 06e3dfe..abe4015 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -3535,10 +3535,10 @@ run_test 79 "df report consistency check =======================" test_80() { # bug 10718 dd if=/dev/zero of=$DIR/$tfile bs=1M count=1 seek=1M sync; sleep 1; sync - BEFORE=`date +%s` + local BEFORE=`date +%s` cancel_lru_locks OSC - AFTER=`date +%s` - DIFF=$((AFTER-BEFORE)) + local AFTER=`date +%s` + local DIFF=$((AFTER-BEFORE)) if [ $DIFF -gt 1 ] ; then error "elapsed for 1M@1T = $DIFF" fi diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 5281e12..fe0726b 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1590,7 +1590,7 @@ run_one() { local SAVE_UMASK=`umask` umask 0022 - BEFORE=`date +%s` + local BEFORE=`date +%s` log "== test $testnum: $message ============ `date +%H:%M:%S` ($BEFORE)" #check_mds export TESTNAME=test_$testnum -- 1.8.3.1