diff mbox series

[8/8] generic/019: don't dump cores when fio/fsstress hit io errors

Message ID 162561731092.543423.12382027169225482171.stgit@locust (mailing list archive)
State New, archived
Headers show
Series fstests: random fixes | expand

Commit Message

Darrick J. Wong July 7, 2021, 12:21 a.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Disable coredumps so that fstests won't mark the test failed when the
EIO injector causes an mmap write to abort with SIGBUS.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 tests/generic/019 |    3 +++
 1 file changed, 3 insertions(+)

Comments

Allison Henderson July 9, 2021, 11:39 p.m. UTC | #1
On 7/6/21 5:21 PM, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
> 
> Disable coredumps so that fstests won't mark the test failed when the
> EIO injector causes an mmap write to abort with SIGBUS.
> 
Looks ok
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
> ---
>   tests/generic/019 |    3 +++
>   1 file changed, 3 insertions(+)
> 
> 
> diff --git a/tests/generic/019 b/tests/generic/019
> index bd234815..b8d025d6 100755
> --- a/tests/generic/019
> +++ b/tests/generic/019
> @@ -62,6 +62,9 @@ NUM_JOBS=$((4*LOAD_FACTOR))
>   BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`
>   FILE_SIZE=$((BLK_DEV_SIZE * 512))
>   
> +# Don't fail the test just because fio or fsstress dump cores
> +ulimit -c 0
> +
>   cat >$fio_config <<EOF
>   ###########
>   # $seq test's fio activity
>
diff mbox series

Patch

diff --git a/tests/generic/019 b/tests/generic/019
index bd234815..b8d025d6 100755
--- a/tests/generic/019
+++ b/tests/generic/019
@@ -62,6 +62,9 @@  NUM_JOBS=$((4*LOAD_FACTOR))
 BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`
 FILE_SIZE=$((BLK_DEV_SIZE * 512))
 
+# Don't fail the test just because fio or fsstress dump cores
+ulimit -c 0
+
 cat >$fio_config <<EOF
 ###########
 # $seq test's fio activity