check: allow '-e testid' to exclude a single test
[xfstests-dev.git] / check
diff --git a/check b/check
index c6ad1d6c07338d1da8e69c6326154a0a7da069bd..e51cbeded353ae3dedaffee0d081bc07bd8e2d2a 100755 (executable)
--- 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