[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250113164639.GG1251194@frogsfrogsfrogs>
Date: Mon, 13 Jan 2025 08:46:39 -0800
From: "Darrick J. Wong" <djwong@...nel.org>
To: "Nirjhar Roy (IBM)" <nirjhar.roy.lists@...il.com>
Cc: fstests@...r.kernel.org, linux-ext4@...r.kernel.org,
linux-xfs@...r.kernel.org, ritesh.list@...il.com,
ojaswin@...ux.ibm.com, zlang@...nel.org
Subject: Re: [RFC 1/5] tests/selftest: Add a new pseudo flaky test.
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@...il.com>
> Signed-off-by: Nirjhar Roy (IBM) <nirjhar.roy.lists@...il.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@...il.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@...nel.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
>
>
Powered by blists - more mailing lists