From 9937eb5fa44c66af36fae39767468a76714a2207 Mon Sep 17 00:00:00 2001 From: Gregoire Pichon Date: Thu, 3 Sep 2015 14:04:34 +0200 Subject: [PATCH] LU-7082 test: fix synchronization of conf_sanity test_90 Add some delays in check_max_mod_rpcs_in_flight() routine to ensure background commands are launched before continuing test execution. Signed-off-by: Gregoire Pichon Change-Id: Ia1c943b7b58ecfe4f3fd80d6470a8ee2650789e7 Reviewed-on: http://review.whamcloud.com/16215 Tested-by: Jenkins Reviewed-by: Alex Zhuravlev Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/tests/conf-sanity.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 49a4756..4c6d347 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -5774,6 +5774,7 @@ check_max_mod_rpcs_in_flight() { for i in $(seq $((mmr - 1))); do chmod 0600 $dir/file-$i & done + sleep 1 # send one additional modify RPC do_facet $facet "$LCTL set_param fail_loc=0" @@ -5798,6 +5799,7 @@ check_max_mod_rpcs_in_flight() { for i in $(seq $mmr); do chmod 0666 $dir/file-$i & done + sleep 1 # send one additional modify RPC do_facet $facet "$LCTL set_param fail_loc=0" @@ -5807,7 +5809,7 @@ check_max_mod_rpcs_in_flight() { # check this additional modify RPC blocked getting a modify RPC slot checkstat -vp 0644 $dir/file-$((mmr + 1)) || - error "Unexpectedly send $mmr modify RPCs in parallel" + error "Unexpectedly send $(($mmr + 1)) modify RPCs in parallel" wait } -- 1.8.3.1