From: Andreas Dilger Date: Mon, 13 Mar 2017 20:53:12 +0000 (-0600) Subject: LU-9201 test: avoid long sleeps in mount_facet() X-Git-Tag: 2.9.58~69 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=293da2049c902de97c8cad2dfa17486a36473421;p=fs%2Flustre-release.git LU-9201 test: avoid long sleeps in mount_facet() Reduce the long sleep during mount since this was fixed via patch https://review.whamcloud.com/24845 for LU-7481. This reduces one llmount.sh time from 62s to 37s (2 MDTs, 4 OSTs), and removes about 800s from each conf-sanity run (201x 4s sleeps due to "Commit the device label" in a recent test log). Test-Parameters: trivial testlist=conf-sanity,conf-sanity,conf-sanity Test-Parameters: trivial testlist=conf-sanity,conf-sanity,conf-sanity Signed-off-by: Andreas Dilger Change-Id: Ib51858a00b935c4f7e473cead117e7d59c3ebbe5 Reviewed-on: https://review.whamcloud.com/26021 Reviewed-by: Jian Yu Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index c565f08..c7aa2a2 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1404,7 +1404,7 @@ mount_facet() { # commit the device label change to disk if [[ $devicelabel =~ (:[a-zA-Z]{3}[0-9]{4}) ]]; then echo "Commit the device label on ${!dev}" - do_facet $facet "sync; sleep 5; sync" + do_facet $facet "sync; sleep 1; sync" fi