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>
error "failed to create file"
local fid=$(path2fid $f)
error "failed to create file"
local fid=$(path2fid $f)
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
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"
}
run_test 1b "Archive, Release & Restore composite file"
}
run_test 1b "Archive, Release & Restore composite file"