From: Minh Diep Date: Thu, 24 Apr 2014 02:28:35 +0000 (-0700) Subject: LU-4864 tests: cleanup shared files in sanity-hsm X-Git-Tag: 2.5.59~43 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9c096264c14c70e88e38ee1de9b05b494491fd28;p=fs%2Flustre-release.git LU-4864 tests: cleanup shared files in sanity-hsm Test creates shared files need to remove them completely Signed-off-by: Minh Diep Change-Id: Ib949326f18ddd3a508fd8605e16f3cafb5a9ee4d Reviewed-on: http://review.whamcloud.com/10073 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Bob Glossman Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index 67f260e..587aeaf 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -257,11 +257,13 @@ get_copytool_event_log() { copytool_cleanup() { trap - EXIT - local agents=${1:-$(facet_active_host $SINGLEAGT)} + local facet=$SINGLEAGT + local agents=${1:-$(facet_active_host $facet)} local mdtno local idx local oldstate local mdt_hsmctrl + local hsm_root=$(copytool_device $facet) do_nodesv $agents "pkill -INT -x $HSMTOOL_BASE" || return 0 sleep 1 @@ -286,6 +288,7 @@ copytool_cleanup() { "$oldstate" 20 || error "mds${mdtno} cdt state is not $oldstate" done + do_facet $facet "rm -rf $hsm_root" } copytool_suspend() {