Whamcloud - gitweb
LU-15374 tests: check FULL and IDLE for client import state
[fs/lustre-release.git] / lustre / tests / test-framework.sh
index 92a124e..7205ae6 100755 (executable)
@@ -3943,7 +3943,7 @@ fail() {
        export SK_NO_KEY=$SK_NO_KEY_save
        # to initiate all OSC idling connections
        clients_up
-       wait_clients_import_state "$clients" "$facets" "\(FULL\|IDLE\)"
+       wait_clients_import_ready "$clients" "$facets"
        clients_up || error "post-failover stat: $?"
 }
 
@@ -8100,6 +8100,10 @@ wait_clients_import_state () {
        fi
 }
 
+wait_clients_import_ready() {
+       wait_clients_import_state "$1" "$2" "\(FULL\|IDLE\)"
+}
+
 wait_osp_active() {
        local facet=$1
        local tgt_name=$2