From 977217520e9488df53ddcf9b4d97641cda24ae78 Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Tue, 22 Dec 2020 20:41:22 +0300 Subject: [PATCH] LU-14275 tests: add ior_CLEANUP Sometimes we need to run read IOR test separately from write test. IOR -r test requires file exists before test starts. If ior_CLEANUP set to false $testdir is not removed and $testdir/iorData file can be used for IOR -r further test. Test-Parameters: trivial testlist=parallel-scale Signed-off-by: Elena Gryaznova HPE-bug-id: LUS-9560 Reviewed-by: Vladimir Saveliev Reviewed-by: Sergey Cheremencev Change-Id: Iac790976a46db2bf5be374a42e3facdce074228b Reviewed-on: https://review.whamcloud.com/41079 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/tests/functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/functions.sh b/lustre/tests/functions.sh index 66bf766..6c5e2e3 100644 --- a/lustre/tests/functions.sh +++ b/lustre/tests/functions.sh @@ -611,6 +611,7 @@ run_ior() { ior_xferSize=${ior_xferSize:-1M} ior_type=${ior_type:-POSIX} ior_DURATION=${ior_DURATION:-30} # minutes + ior_CLEANUP=${ior_CLEANUP:-true} local multiplier=1 case ${ior_blockUnit} in [G]) @@ -692,7 +693,7 @@ run_ior() { if [ $rc != 0 ] ; then error "ior failed! $rc" fi - rm -rf $testdir + $ior_CLEANUP && rm -rf $testdir || true } run_mib() { -- 1.8.3.1