All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftest: add a test that flakes
@ 2025-05-10  0:42 Leah Rumancik
  2025-05-12 14:02 ` Nirjhar Roy (IBM)
  0 siblings, 1 reply; 5+ messages in thread
From: Leah Rumancik @ 2025-05-10  0:42 UTC (permalink / raw)
  To: fstests; +Cc: Leah Rumancik

Add selftest/007 which should fail about half of the time.

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
-- 
2.49.0.1045.g170613ef41-goog


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-05-13  5:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2025-05-13  3:47     ` Zorro Lang
2025-05-13  5:01       ` Leah

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.