Whamcloud - gitweb
LU-2550 test: fix sanity test_122
authorNiu Yawei <niu@whamcloud.com>
Thu, 17 Jan 2013 09:44:57 +0000 (04:44 -0500)
committerJohann Lombardi <johann.lombardi@intel.com>
Fri, 18 Jan 2013 08:27:12 +0000 (03:27 -0500)
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 <yawei.niu@intel.com>
Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I53f0a476c98904e9fb570cf9e13ccdacdcd80af0
Reviewed-on: http://review.whamcloud.com/5050
Tested-by: Hudson
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
lustre/tests/sanity.sh

index 3b54e03..31a89b4 100644 (file)
@@ -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
         #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
         lctl set_param fail_loc=0
+        wait
 }
 run_test 122 "fail client bulk callback (shouldn't LBUG) ======="
 
 }
 run_test 122 "fail client bulk callback (shouldn't LBUG) ======="