Whamcloud - gitweb
LU-14377 tests: make parallel-scale/rr_alloc less strict 14/48914/4
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 19 Oct 2022 00:37:58 +0000 (18:37 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Nov 2022 08:52:59 +0000 (08:52 +0000)
commitb104c0a27713899a4d047f56fed57c30c39b8195
tree1afe7cc5e488e648e0369e88cbc6f8e43849becc
parent38a52f2fc38149dd7580f0bf5d3f686a5f0a7a15
LU-14377 tests: make parallel-scale/rr_alloc less strict

test_rr_alloc() sometimes fails with a difference of 3-4 objects
per OST, after creating 1500+ objects on each OST.  This should
not be considered fatal.  Make the test more lenient, and allow
a difference of up to 0.3% of objects between the OSTs.

Fix some code style issues in the test.

Test-Parameters: trivial testlist=parallel-scale env=ONLY=rr_alloc
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ib6ba8c5d8e9d3245833448a52f8ed25308698a33
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48914
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Elena Gryaznova <elena.gryaznova@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/functions.sh