From 9f3515572c4939674bdb582e26ca12baa1575416 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 13 May 2014 09:04:13 +1000 Subject: [PATCH] check: add support for an external file containing tests to exclude Currently the -X option is intended to specify a set of expunging files which are stored in each test/* subdirectory. As described in the commit description for 0b1e8abd4, in order to exclude the test generic/280, the -X option is used as follows: $ cat tests/generic/3.0-stable-avoid 280 $ sudo ./check -X 3.0-stable-avoid generic/280 However, it is sometimes useful to store the set of expunged tests in a single file, outside of tests/* subdirectories. This commit enables the following: $ cat /root/conf/data_journal.exclude generic/068 ext4/301 $ sudo ./check -E /root/conf/data_journal.exclude -g auto Signed-off-by: "Theodore Ts'o" Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- check | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/check b/check index e7ace63d..b1eaed26 100755 --- a/check +++ b/check @@ -81,6 +81,7 @@ testlist options -g group[,group...] include tests from these groups -x group[,group...] exclude tests from these groups -X file exclude individual tests + -E external_file exclude individual tests [testlist] include tests matching names in testlist ' exit 0 @@ -222,6 +223,11 @@ while [ $# -gt 0 ]; do done done ;; + -E) xfile=$2; shift ; + if [ -f $xfile ]; then + cat "$xfile" >> $tmp.xlist + fi + ;; -s) RUN_SECTION="$RUN_SECTION $2"; shift ;; -l) diff="diff" ;; -udiff) diff="$diff -u" ;; -- 2.30.2