This patch removes the check every time a file is created,
and adds a general check for the presence of created files.
Test-Parameters: trivial testlist=sanity-lipe-scan3
Signed-off-by: Vitaliy Kuznetsov <vkuznetsov@ddn.com>
Change-Id: I7d7e0c9b0e6517853bb3b77e8f938bbd877b3003
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52590
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
# Create many small files of different sizes
for ((i = 0; i < $num_files; i++)); do
fallocate -l $((RANDOM % 125 + 1))Kb $file"_"$i
- [[ $? -ne 0 ]] && error "fallocate ended with an error"
done
sync
}
count_files_ls=$(ls -1 "$MOUNT" | grep -vE '^total' | wc -l)
total_size_ls=$(ls -l "$MOUNT" | grep '^total' | awk '{print $2}')
+ (( count_files_ls > 2 )) || error "fallocate ended with an error"
+
out=$(lipe_scan3_facet "$facet" --collect-fsize-stats="$report_path")
[[ $? -ne 0 ]] && error "lipe_scan3 collect-fsize-stats failed"