From: Jinshan Xiong Date: Thu, 14 Nov 2013 17:39:04 +0000 (-0800) Subject: LU-4063 tests: use $DIR to check file at agent host X-Git-Tag: 2.5.58~44 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=f0f0a4951493859d213ae41b7818722e7c37e58a LU-4063 tests: use $DIR to check file at agent host 12a used to use DIR2 which is not mounted at agent host. Signed-off-by: Jinshan Xiong Change-Id: I5cea35c5e20f8c1064902d6b116dbddb1096c150 Reviewed-on: http://review.whamcloud.com/7869 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: jacques-Charles Lafoucriere Reviewed-by: John L. Hammond Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index 54c5e20..0e4735f 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -1018,16 +1018,16 @@ test_12a() { local f=$DIR/$tdir/$tfile import_file $tdir/$tfile $f - local f=$DIR2/$tdir/$tfile + local f2=$DIR2/$tdir/$tfile echo "Verifying released state: " - check_hsm_flags $f "0x0000000d" + check_hsm_flags $f2 "0x0000000d" - local fid=$(path2fid $f) - $LFS hsm_restore $f + local fid=$(path2fid $f2) + $LFS hsm_restore $f2 wait_request_state $fid RESTORE SUCCEED echo "Verifying file state: " - check_hsm_flags $f "0x00000009" + check_hsm_flags $f2 "0x00000009" do_facet $SINGLEAGT diff -q $HSM_ARCHIVE/$tdir/$tfile $f