From 5936b1cb17ffec5fba384bba2c915e93657862da Mon Sep 17 00:00:00 2001 From: Emoly Liu Date: Fri, 25 Oct 2024 15:05:33 +0800 Subject: [PATCH] LU-18393 tests: $num_files should be multiple of $num_entries According to performance-sanity.sh test_4 failure "md_validate_tests, items must be a multiple of items per directory", set $num_files to be a multiple of $num_entries. Test-Parameters: trivial testlist=performance-sanity Signed-off-by: Emoly Liu Change-Id: I8c635649ef016389d1bd22f8318a55f8d0f77962 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56785 Tested-by: Maloo Tested-by: jenkins Reviewed-by: Alex Deiter Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/tests/test-framework.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 80366b2..024fe78 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -8539,6 +8539,9 @@ run_mdtest () { if (( num_dirs > 1 )); then num_entries=$((num_files / num_dirs)) + # md_validate_tests requires items must be a multiple of + # items per directory + num_files=$((num_entries * num_dirs)) log "split $num_files files to $num_dirs" \ "with $num_entries files each" mdtest_options+=(-I=$num_entries) -- 1.8.3.1