Whamcloud - gitweb
LU-9201 test: avoid long sleeps in mount_facet() 21/26021/5
authorAndreas Dilger <andreas.dilger@intel.com>
Mon, 13 Mar 2017 20:53:12 +0000 (14:53 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 May 2017 03:45:29 +0000 (03:45 +0000)
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 <andreas.dilger@intel.com>
Change-Id: Ib51858a00b935c4f7e473cead117e7d59c3ebbe5
Reviewed-on: https://review.whamcloud.com/26021
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/test-framework.sh

index c565f08..c7aa2a2 100755 (executable)
@@ -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