Thread (19 messages) 19 messages, 2 authors, 2021-02-11
STALE1983d

[PATCH 3/6] check: allow '-e testid' to exclude a single test

From: "Darrick J. Wong" <djwong@kernel.org>
Date: 2021-02-10 02:57:19
Also in: fstests
Subsystem: the rest · Maintainer: Linus Torvalds

From: Darrick J. Wong <djwong@kernel.org>

This enables us to mask off specific tests.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 check |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/check b/check
index c6ad1d6c..e51cbede 100755
--- a/check
+++ b/check
@@ -79,6 +79,7 @@ testlist options
     -g group[,group...]	include tests from these groups
     -x group[,group...]	exclude tests from these groups
     -X exclude_file	exclude individual tests
+    -e testlist         exclude a specific list of tests
     -E external_file	exclude individual tests
     [testlist]		include tests matching names in testlist
 
@@ -287,6 +288,11 @@ while [ $# -gt 0 ]; do
 
 	-X)	subdir_xfile=$2; shift ;
 		;;
+	-e)
+		xfile=$2; shift ;
+		echo "$xfile" | tr ', ' '\n\n' >> $tmp.xlist
+		;;
+
 	-E)	xfile=$2; shift ;
 		if [ -f $xfile ]; then
 			sed "s/#.*$//" "$xfile" >> $tmp.xlist
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help