From 31e53250276a405b4a9c6aa689e1a9c3f09fc7b1 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Tue, 5 Jan 2016 14:28:00 -0600 Subject: [PATCH] LU-7586 test: wait for remove in sanity-hsm test_406() In sanity-hsm test_406() wait for the remove to complete before continuing and call 'lfs mv' with the parent directory instead of the individual file. Signed-off-by: John L. Hammond Change-Id: Idc22747c3e9da35ca40671735f18889345af5d9d Reviewed-on: http://review.whamcloud.com/17828 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Faccini Bruno Reviewed-by: Oleg Drokin --- lustre/tests/sanity-hsm.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index c580554..f12cb18 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -4640,13 +4640,13 @@ test_406() { $LFS hsm_restore $DIR/$tdir/$tfile wait_request_state "$fid" RESTORE SUCCEED - $LFS hsm_remove $DIR/$tdir/$tfile || - error "cannot remove $DIR/$tdir/$tfile from archive" + $LFS hsm_remove $DIR/$tdir/$tfile + wait_request_state "$fid" REMOVE SUCCEED cat $DIR/$tdir/$tfile > /dev/null || error "cannot read $DIR/$tdir/$tfile" - $LFS mv -M1 $DIR/$tdir/$tfile || + $LFS mv -M1 $DIR/$tdir || error "cannot complete migration after HSM remove" mdt_index=$($LFS getstripe -M $DIR/$tdir) -- 1.8.3.1