From: "Nirjhar Roy (IBM)" <nirjhar.roy.lists@gmail.com>
To: Leah Rumancik <leah.rumancik@gmail.com>, fstests@vger.kernel.org
Subject: Re: [PATCH] selftest: add a test that flakes
Date: Mon, 12 May 2025 19:32:15 +0530 [thread overview]
Message-ID: <434c560c632558cdc32b45f2aef54c68ca6c0baa.camel@gmail.com> (raw)
In-Reply-To: <20250510004256.451058-1-leah.rumancik@gmail.com>
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/
--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
next prev parent reply other threads:[~2025-05-12 14:02 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) [this message]
2025-05-12 15:19 ` Darrick J. Wong
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=434c560c632558cdc32b45f2aef54c68ca6c0baa.camel@gmail.com \
--to=nirjhar.roy.lists@gmail.com \
--cc=fstests@vger.kernel.org \
--cc=leah.rumancik@gmail.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