From c05656557353954b2a9799c4e702329db2d38851 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Fri, 30 Aug 2019 17:23:50 -0600 Subject: [PATCH 1/1] 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 --- lustre/tests/runtests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." -- 1.8.3.1