From: James Nunez Date: Tue, 5 Dec 2017 17:49:26 +0000 (-0700) Subject: LU-5680 tests: Remove use of /etc/motd from sanity-hsm X-Git-Tag: 2.10.57~33 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F14021%2F6;p=fs%2Flustre-release.git LU-5680 tests: Remove use of /etc/motd from sanity-hsm In sanity-hsm tests, /etc/motd is copied to the file system and archived. /etc/motd may not exist in some Linux distributions and, if exists, may be of size 0 and may defeat the use of bandwidth control for timing. Uses of /etc/motd are replaced with a generated file of known suitable size. Test-Parameters: trivial testlist=sanity-hsm Signed-off-by: James Nunez Change-Id: I2f287db6d422ce20bca037ca69e24179c7e48144 Reviewed-on: https://review.whamcloud.com/14021 Reviewed-by: Quentin Bouget Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index bd7eedd..eadeba3 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -2567,7 +2567,7 @@ test_26d() { mkdir -p $DIR/$tdir local f=$DIR/$tdir/$tfile - local fid=$(copy_file /etc/motd $f 1) + local fid=$(create_small_file $f) $LFS hsm_archive $f || error "could not archive file" wait_request_state $fid ARCHIVE SUCCEED @@ -3220,7 +3220,7 @@ test_52() { mkdir -p $DIR/$tdir local f=$DIR/$tdir/$tfile - local fid=$(copy_file /etc/motd $f 1) + local fid=$(create_small_file $f) $LFS hsm_archive $f || error "could not archive file" wait_request_state $fid ARCHIVE SUCCEED @@ -3245,7 +3245,7 @@ test_53() { mkdir -p $DIR/$tdir local f=$DIR/$tdir/$tfile - local fid=$(copy_file /etc/motd $f 1) + local fid=$(create_small_file $f) $LFS hsm_archive --archive $HSM_ARCHIVE_NUMBER $f || error "could not archive file"