FS/XFS testing framework
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: "Nirjhar Roy (IBM)" <nirjhar.roy.lists@gmail.com>,
	Zorro Lang <zlang@redhat.com>
Cc: Leah Rumancik <leah.rumancik@gmail.com>, fstests@vger.kernel.org
Subject: Re: [PATCH] selftest: add a test that flakes
Date: Mon, 12 May 2025 08:19:49 -0700	[thread overview]
Message-ID: <20250512151949.GR25667@frogsfrogsfrogs> (raw)
In-Reply-To: <434c560c632558cdc32b45f2aef54c68ca6c0baa.camel@gmail.com>

On Mon, May 12, 2025 at 07:32:15PM +0530, Nirjhar Roy (IBM) wrote:
> On Fri, 2025-05-09 at 17:42 -0700, Leah Rumancik wrote:
> > Add selftest/007 which should fail about half of the time.
> 
> I have already posted something similar[1] a couple of months back. It got an approval didn't get
> picked up. 
> [1] https://lore.kernel.org/all/20250113164639.GG1251194@frogsfrogsfrogs/

Aha, I /was/ thinking "Gee , haven't I reviewed this before?"

Zorro: any plans to merge
https://lore.kernel.org/all/03ba6c154c9e2cf3d68131b3af2ca12b96663d25.1736496620.git.nirjhar.roy.lists@gmail.com/a ?

--D

> --NR
> > 
> > Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
> > ---
> >  tests/selftest/007     | 14 ++++++++++++++
> >  tests/selftest/007.out |  3 +++
> >  2 files changed, 17 insertions(+)
> >  create mode 100755 tests/selftest/007
> >  create mode 100644 tests/selftest/007.out
> > 
> > diff --git a/tests/selftest/007 b/tests/selftest/007
> > new file mode 100755
> > index 00000000..0e983b37
> > --- /dev/null
> > +++ b/tests/selftest/007
> > @@ -0,0 +1,14 @@
> > +#! /bin/bash
> > +# SPDX-License-Identifier: GPL-2.0
> > +#
> > +# FS QA Test No. 007
> > +#
> > +# A test that flakes due to occasional output mismatch
> > +#
> > +. ./common/preamble
> > +_begin_fstest selftest
> > +
> > +echo "I am intentionally flaky"
> > +echo $((RANDOM % 2))
> > +status=0
> > +exit
> > diff --git a/tests/selftest/007.out b/tests/selftest/007.out
> > new file mode 100644
> > index 00000000..0b5e439a
> > --- /dev/null
> > +++ b/tests/selftest/007.out
> > @@ -0,0 +1,3 @@
> > +QA output created by 007
> > +I am intentionally flaky
> > +0
> 
> 

  reply	other threads:[~2025-05-12 15:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-10  0:42 [PATCH] selftest: add a test that flakes Leah Rumancik
2025-05-12 14:02 ` Nirjhar Roy (IBM)
2025-05-12 15:19   ` Darrick J. Wong [this message]
2025-05-13  3:47     ` Zorro Lang
2025-05-13  5:01       ` Leah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250512151949.GR25667@frogsfrogsfrogs \
    --to=djwong@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=leah.rumancik@gmail.com \
    --cc=nirjhar.roy.lists@gmail.com \
    --cc=zlang@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox