Whamcloud - gitweb
LU-13187 tests: improve sanity test_129 checking 50/38550/2
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 9 May 2020 01:22:59 +0000 (19:22 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 21 May 2020 01:12:49 +0000 (01:12 +0000)
commiteb80e37f023b85ef0e610ab65cee1d8ee07235fc
tree382b3dd86166e8909964624f2b72a54aaa6f9695
parent74f8e405b2c9df48148ed4c72bef4d143ac97f22
LU-13187 tests: improve sanity test_129 checking

When running sanity test_129 repeatedly, it may fail to print the
warning/error messages to the console due to throttling.  Fix the
test to only warn if the messages were not printed, so long as the
size limit is correct.

Always reset max_dir_limit on exit, and delete the test files.

Fix test_129 to use mcreate instead of multiop to be faster, and
fix mcreate to return the actual error code returned by the syscall.

Fix the console error messages to be complete strings, rather than
being dynamically generated, so that they can be more easily found.
To compensate, don't have separate messages for with/without FID.

Test-Parameters: trivial testlist=sanity env=ONLY=129,ONLY_REPEAT=100
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I06593441151fa508ef2db7a3e68be34cc0ce7057
Reviewed-on: https://review.whamcloud.com/38550
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/tests/mcreate.c
lustre/tests/sanity.sh