From 6dc66068546824a7a0da23fab64fd4934f6be095 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Tue, 21 Oct 2014 15:57:35 -0500 Subject: [PATCH] LU-5779 test: wait for CT registration in sanity-hsm test_70 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 Change-Id: Ibc3fa26c119cebd10566b9ac3b4d1a754da1aaf2 Reviewed-on: http://review.whamcloud.com/12367 Reviewed-by: James Nunez Tested-by: Jenkins Reviewed-by: frank zago Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/tests/sanity-hsm.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index c62d901..3fb1e30 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -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 -- 1.8.3.1