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@xxxxxxxxx> Signed-off-by: Nirjhar Roy (IBM) <nirjhar.roy.lists@xxxxxxxxx> --- 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@xxxxxxxxx> +# +# 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" +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