From fa06c298153cf1d0370e752d096d690e3b80cd56 Mon Sep 17 00:00:00 2001 From: Niu Yawei Date: Thu, 17 Jan 2013 04:44:57 -0500 Subject: [PATCH] LU-2550 test: fix sanity test_122 The injected error in sanity test_122 could cause reconnect & resend infinitely, then the test will wait on 'sync' forever. Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes testlist=sanity Signed-off-by: Niu Yawei Signed-off-by: Bob Glossman Change-Id: I53f0a476c98904e9fb570cf9e13ccdacdcd80af0 Reviewed-on: http://review.whamcloud.com/5050 Tested-by: Hudson Reviewed-by: Jian Yu Tested-by: Maloo Reviewed-by: Johann Lombardi --- lustre/tests/sanity.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 3b54e03..31a89b4 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -5483,8 +5483,10 @@ test_122() { #bug 11544 #define OBD_FAIL_PTLRPC_CLIENT_BULK_CB 0x508 lctl set_param fail_loc=0x508 dd if=/dev/zero of=$DIR/$tfile count=1 - sync + sync & + sleep 2 lctl set_param fail_loc=0 + wait } run_test 122 "fail client bulk callback (shouldn't LBUG) =======" -- 1.8.3.1