From: Bobi Jam Date: Fri, 7 Apr 2017 03:12:10 +0000 (+0800) Subject: LU-9300 test: need copytool setup for sanity-hsm 1b X-Git-Tag: 2.9.56~46^2 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F26434%2F3;p=fs%2Flustre-release.git LU-9300 test: need copytool setup for sanity-hsm 1b sanity-hsm test_1b() needs setup/cleanup copytool in the test. Test-Parameters: trivial testlist=sanity-hsm,sanity-pfl Signed-off-by: Bobi Jam Change-Id: I40b083db37eb4e764e06606d0912ac635dc8c2a1 Reviewed-on: https://review.whamcloud.com/26434 Tested-by: Jenkins Reviewed-by: Andreas Dilger Reviewed-by: Niu Yawei Tested-by: Maloo Reviewed-by: Jinshan Xiong --- diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index f29314b..ca1f23e 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -918,6 +918,8 @@ test_1b() { error "failed to create file" local fid=$(path2fid $f) + copytool_setup + echo "archive $f" $LFS hsm_archive $f || error "could not archive file" wait_request_state $fid ARCHIVE SUCCEED @@ -932,6 +934,8 @@ test_1b() { wait_request_state $fid RESTORE SUCCEED echo "verify restored state: " check_hsm_flags $f "0x00000009" && echo "pass" + + copytool_cleanup } run_test 1b "Archive, Release & Restore composite file"