Whamcloud - gitweb
LU-9300 test: need copytool setup for sanity-hsm 1b 34/26434/3
authorBobi Jam <bobijam.xu@intel.com>
Fri, 7 Apr 2017 03:12:10 +0000 (11:12 +0800)
committerJinshan Xiong <jinshan.xiong@intel.com>
Sat, 8 Apr 2017 03:38:25 +0000 (03:38 +0000)
sanity-hsm test_1b() needs setup/cleanup copytool in the test.

Test-Parameters: trivial testlist=sanity-hsm,sanity-pfl
Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I40b083db37eb4e764e06606d0912ac635dc8c2a1
Reviewed-on: https://review.whamcloud.com/26434
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
lustre/tests/sanity-hsm.sh

index f29314b..ca1f23e 100755 (executable)
@@ -918,6 +918,8 @@ test_1b() {
                error "failed to create file"
        local fid=$(path2fid $f)
 
                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
        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"
        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"
 
 }
 run_test 1b "Archive, Release & Restore composite file"