From: Luis R. Rodriguez Date: Sun, 21 Jan 2018 07:24:01 +0000 (-0800) Subject: check: expunge tests when doing a dry run X-Git-Tag: v2022.05.01~1690 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8ebb071eb8a578abcbf7fbe90c88164fcf1073e1;p=users%2Fhch%2Fxfstests-dev.git check: expunge tests when doing a dry run Running ./check with -n will not execute tests, however when exclude files are used we still show them as if they are run. Test the exclude file prior to assuming we can run a test on a dry run. Signed-off-by: Luis R. Rodriguez Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/check b/check index 84752dae3..2bdad3995 100755 --- a/check +++ b/check @@ -668,6 +668,10 @@ for section in $HOST_OPTIONS_SECTIONS; do echo -n "$seqnum" if $showme; then + _expunge_test $seqnum + if [ $? -eq 1 ]; then + continue + fi echo start=0 stop=0