Whamcloud - gitweb
LU-5779 test: wait for CT registration in sanity-hsm test_70 67/12367/2
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 21 Oct 2014 20:57:35 +0000 (15:57 -0500)
committerAndreas Dilger <andreas.dilger@intel.com>
Fri, 24 Oct 2014 18:17:14 +0000 (18:17 +0000)
In sanity-hsm test_70 wait for the copytool to register before
shutting it down (via SIGINT) so that the desired events may be
emitted.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ibc3fa26c119cebd10566b9ac3b4d1a754da1aaf2
Reviewed-on: http://review.whamcloud.com/12367
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Tested-by: Jenkins
Reviewed-by: frank zago <fzago@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity-hsm.sh

index c62d901..3fb1e30 100755 (executable)
@@ -2758,6 +2758,13 @@ test_70() {
 
        # Just start and stop the copytool to generate events.
        cdt_clear_no_retry
+
+       # Wait for the copytool to register.
+       wait_update --verbose $(facet_active_host mds1) \
+               "$LCTL get_param -n ${MDT_PREFIX}0.hsm.agents | grep -o ^uuid" \
+               uuid 100 ||
+               error "copytool failed to register with MDT0000"
+
        copytool_cleanup
 
        local REGISTER_EVENT