From: Darrick J. Wong Date: Wed, 10 Feb 2021 02:56:36 +0000 (-0800) Subject: check: allow '-e testid' to exclude a single test X-Git-Tag: v2022.05.01~552 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5baeea6fe8c216debd3b05426e6907ec509bf52b;p=xfstests-dev.git check: allow '-e testid' to exclude a single test This enables us to mask off specific tests. Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster Signed-off-by: Eryu Guan --- 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