From: Andreas Dilger Date: Fri, 30 Aug 2019 23:23:50 +0000 (-0600) Subject: LU-12579 tests: allow some margin in runtests X-Git-Tag: 2.12.90~133 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=c05656557353954b2a9799c4e702329db2d38851 LU-12579 tests: allow some margin in runtests Allow some margin in the space used by runtests for internal log files for Lustre and the underlying filesystem. Test-Parameters: trivial testlist=runtests,runtests,runtests Test-Parameters: mdtcount=4 mdscount=2 testlist=runtests,runtests,runtests Test-Parameters: fstype=zfs testlist=runtests,runtests,runtests Test-Parameters: fstype=zfs mdtcount=4 mdscount=2 testlist=runtests,runtests Signed-off-by: Andreas Dilger Change-Id: I34b47a8436c5718be311698a3f6e6d7af7ea45ad Reviewed-on: https://review.whamcloud.com/36011 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Patrick Farrell --- diff --git a/lustre/tests/runtests b/lustre/tests/runtests index 51f0353..dd64560 100755 --- a/lustre/tests/runtests +++ b/lustre/tests/runtests @@ -128,7 +128,7 @@ log "done" wait_delete_completed sleep 5 # let MDS refresh aggregated statfs NOWUSED=$(($(df -P $DIR | awk '{ print $3 }' | tail -n 1))) -if [ $(expr $NOWUSED - $USED) -gt 1024 ]; then +if [ $(expr $NOWUSED - $USED) -gt $(fs_log_size) ]; then error "Space not all freed: now ${NOWUSED}kB, was ${USED}kB." else log "Space was freed: now ${NOWUSED}kB, was ${USED}kB."