From 9c096264c14c70e88e38ee1de9b05b494491fd28 Mon Sep 17 00:00:00 2001 From: Minh Diep Date: Wed, 23 Apr 2014 19:28:35 -0700 Subject: [PATCH] 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 --- lustre/tests/sanity-hsm.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() { -- 1.8.3.1