From dcbca5966dbde94e893f7720a578418c8a2316fb Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Wed, 26 Feb 2020 19:05:11 +0300 Subject: [PATCH] LU-13280 tests: customize run_mdtest for several mount points Patch adds the possibility to run mdtest on $mdtest_Nmntp number of Lustre mount points. Test-Parameters: trivial testlist=parallel-scale \ envdefinitions="mdtest_Nmntp=3" \ envdefinitions=ONLY=mdtestfpp envdefinitions=ONLY=mdtestssf Cray-bug-id: LUS-7686 Signed-off-by: Elena Gryaznova Reviewed-by: Alexander Boyko Reviewed-by: Alexey Lyashkov Change-Id: I9bc68d4f296970290cf460bf25cc26537bcc3281 Reviewed-on: https://review.whamcloud.com/37665 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Alexander Boyko Reviewed-by: Oleg Drokin --- lustre/tests/functions.sh | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/lustre/tests/functions.sh b/lustre/tests/functions.sh index 4df176a..9785564 100644 --- a/lustre/tests/functions.sh +++ b/lustre/tests/functions.sh @@ -460,6 +460,13 @@ run_mdtest() { local mdtest_custom_params=${mdtest_custom_params:-""} local type=${1:-"ssf"} + local mdtest_Nmntp=${mdtest_Nmntp:-1} + + if [ $type = "ssf" ] && [ $mdtest_Nmntp -ne 1 ]; then + skip "shared directory mode is not compatible" \ + "with multiple directory paths" + fi + # FIXME # Need space estimation here. @@ -468,9 +475,18 @@ run_mdtest() { local testdir=$DIR/d0.mdtest mkdir -p $testdir setstripe_getstripe $testdir $mdtest_STRIPEPARAMS + chmod 0777 $testdir + for ((i=1; i