From 4b78e6300486c1ff9530eeed1017668c48571c0e Mon Sep 17 00:00:00 2001 From: tianzy Date: Wed, 11 Mar 2009 08:27:56 +0000 Subject: [PATCH] Branch HEAD fix a problem in test_68 in replay-single.sh b=18426 i=nathan.rutman --- lustre/tests/replay-single.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index 1cfac660..fc79347 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -1769,19 +1769,21 @@ test_68 () #bug 13813 echo $TIMEOUT >> $ldlm_enqueue_min do_facet ost1 "echo $TIMEOUT >> $ldlm_enqueue_min_r" - rm -f $DIR/${tfile}_[1-2] - lfs setstripe $DIR/$tfile --index=0 --count=1 + rm -rf $DIR/$tdir + mkdir -p $DIR/$tdir + lfs setstripe $DIR/$tdir --index=0 --count=1 #define OBD_FAIL_LDLM_PAUSE_CANCEL 0x312 sysctl -w lustre.fail_val=$(($TIMEOUT - 1)) sysctl -w lustre.fail_loc=0x80000312 - cp /etc/profile $DIR/${tfile}_1 || error "1st cp failed $?" - sysctl -w lustre.fail_val=$((TIMEOUT * 3 / 2)) + cp /etc/profile $DIR/$tdir/${tfile}_1 || error "1st cp failed $?" + sysctl -w lustre.fail_val=$((TIMEOUT * 5 / 4)) sysctl -w lustre.fail_loc=0x80000312 - cp /etc/profile $DIR/${tfile}_2 || error "2nd cp failed $?" + cp /etc/profile $DIR/$tdir/${tfile}_2 || error "2nd cp failed $?" sysctl -w lustre.fail_loc=0 echo $ENQ_MIN >> $ldlm_enqueue_min do_facet ost1 "echo $ENQ_MIN_R >> $ldlm_enqueue_min_r" + rm -rf $DIR/$tdir return 0 } run_test 68 "AT: verify slowing locks" -- 1.8.3.1