From: "Darrick J. Wong" <djwong@kernel.org>
To: "Nirjhar Roy (IBM)" <nirjhar.roy.lists@gmail.com>
Cc: fstests@vger.kernel.org, linux-ext4@vger.kernel.org,
linux-xfs@vger.kernel.org, ritesh.list@gmail.com,
ojaswin@linux.ibm.com, zlang@kernel.org
Subject: Re: [RFC 1/5] tests/selftest: Add a new pseudo flaky test.
Date: Mon, 13 Jan 2025 08:46:39 -0800 [thread overview]
Message-ID: <20250113164639.GG1251194@frogsfrogsfrogs> (raw)
In-Reply-To: <03ba6c154c9e2cf3d68131b3af2ca12b96663d25.1736496620.git.nirjhar.roy.lists@gmail.com>
On Fri, Jan 10, 2025 at 09:10:25AM +0000, Nirjhar Roy (IBM) wrote:
> This test is to simulate the behavior of a flaky test. This will be required
> when we will make some modifications to the pass/fail metric calculation of
> the test infrastructure where we will need a test with non-zero pass
> and non-zero failure rate.
>
> Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
> Signed-off-by: Nirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
> ---
> tests/selftest/007 | 21 +++++++++++++++++++++
> tests/selftest/007.out | 2 ++
> 2 files changed, 23 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..f100ec5f
> --- /dev/null
> +++ b/tests/selftest/007
> @@ -0,0 +1,21 @@
> +#! /bin/bash
> +# SPDX-License-Identifier: GPL-2.0
> +# Copyright (c) 2024 IBM Corporation. All Rights Reserved.
> +# Author: Nirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
> +#
> +# FS QA Test 007
> +#
> +# This test is to simulate the behavior of a flakey test.
> +#
> +
> +. ./common/preamble
> +_begin_fstest selftest
> +
> +if (($RANDOM % 2)); then
> + echo "Silence is golden"
> +else
> + echo "Silence is flakey"
Oh is it now? ;)
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
--D
> +fi
> +
> +status=0
> +exit
> diff --git a/tests/selftest/007.out b/tests/selftest/007.out
> new file mode 100644
> index 00000000..fd3590e6
> --- /dev/null
> +++ b/tests/selftest/007.out
> @@ -0,0 +1,2 @@
> +QA output created by 007
> +Silence is golden
> --
> 2.34.1
>
>
next prev parent reply other threads:[~2025-01-13 16:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-10 9:10 [RFC 0/5] Add support for central fsconfig and -q <n> unconditional loop Nirjhar Roy (IBM)
2025-01-10 9:10 ` [RFC 1/5] tests/selftest: Add a new pseudo flaky test Nirjhar Roy (IBM)
2025-01-13 16:46 ` Darrick J. Wong [this message]
2025-01-10 9:10 ` [RFC 2/5] check: Add -q <n> option to support unconditional looping Nirjhar Roy (IBM)
2025-01-10 16:08 ` Theodore Ts'o
2025-01-11 3:35 ` Ritesh Harjani
2025-01-10 9:10 ` [RFC 3/5] check: Improve pass/fail metrics and section config output Nirjhar Roy (IBM)
2025-01-10 9:10 ` [RFC 4/5] check,common/config: Add support for central fsconfig Nirjhar Roy (IBM)
2025-01-10 16:38 ` Theodore Ts'o
2025-02-20 9:56 ` Anand Jain
2025-03-01 17:30 ` Ritesh Harjani
2025-03-03 9:30 ` Anand Jain
2025-01-10 9:10 ` [RFC 5/5] configs: Add a couple of xfs and ext4 configuration templates Nirjhar Roy (IBM)
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=20250113164639.GG1251194@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=fstests@vger.kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=nirjhar.roy.lists@gmail.com \
--cc=ojaswin@linux.ibm.com \
--cc=ritesh.list@gmail.com \
--cc=zlang@kernel.org \
/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