]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/038: set a maximum runtime on this test
authorDarrick J. Wong <djwong@kernel.org>
Wed, 1 Feb 2023 00:51:35 +0000 (16:51 -0800)
committerZorro Lang <zlang@kernel.org>
Fri, 3 Feb 2023 09:51:37 +0000 (17:51 +0800)
commit82961ee6b44f320f30dc923f566c33a3ff1a102b
tree1dd0ac6cbfcbac86d2fae5dbeb787f24a1b6538e
parentda69ce70dfcdbd88d6f940d7c1ab346d5a1e5f82
generic/038: set a maximum runtime on this test

This test races multiple FITRIM calls against multiple programs creating
200k small files to ensure that there are no concurrency problems with
the allocator and the FITRIM code.  This is not necessarily quick, and
the test itself does not contain any upper bound on the runtime.  On my
system that simulates storage with DRAM this takes ~5 minutes to run; on
my cloud system with newly provided discard support, I killed the test
after 27 hours.

Constrain the runtime to about the customary 30s * TIME_FACTOR.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/038