[PATCH] Allow tagging tests with a bug number.

Chris Lumens clumens at redhat.com
Mon Oct 26 15:27:06 UTC 2015


Any test with a type containing "bz#" will be skipped, just like if it
had a type of "knownfailure".  This at least lets us know why a test is
being skipped for later checking.
---
 tests/kickstart_tests/packages-instlangs-2.sh        | 2 +-
 tests/kickstart_tests/scripts/run_kickstart_tests.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/kickstart_tests/packages-instlangs-2.sh b/tests/kickstart_tests/packages-instlangs-2.sh
index 4737974..9bcbcbe 100755
--- a/tests/kickstart_tests/packages-instlangs-2.sh
+++ b/tests/kickstart_tests/packages-instlangs-2.sh
@@ -17,6 +17,6 @@
 #
 # Red Hat Author(s): Chris Lumens <clumens at redhat.com>
 
-TESTTYPE="knownfailure packaging"
+TESTTYPE="knownfailure packaging rhbz#1268036"
 
 . ${KSTESTDIR}/functions.sh
diff --git a/tests/kickstart_tests/scripts/run_kickstart_tests.sh b/tests/kickstart_tests/scripts/run_kickstart_tests.sh
index aa52acb..d6a0b39 100755
--- a/tests/kickstart_tests/scripts/run_kickstart_tests.sh
+++ b/tests/kickstart_tests/scripts/run_kickstart_tests.sh
@@ -127,7 +127,7 @@ else
     for f in ${tests}; do
         if [[ "$TESTTYPE" != "" && "$(grep TESTTYPE= ${f})" =~ "${TESTTYPE}" ]]; then
             newtests+="${f} "
-        elif [[ "$TESTTYPE" == "" && ! "$(grep TESTTYPE= ${f})" =~ knownfailure ]]; then
+        elif [[ "$TESTTYPE" == "" && ! "$(grep TESTTYPE= ${f})" =~ knownfailure && ! "$(grep TESTTYPE= ${f})" =~ bz\# ]]; then
             # Skip any test with the type "knownfailure".  If you want to run these (to
             # see if they are still failing, for instance) you can add "-t knownfailure"
             # on the command line.
-- 
2.4.3



More information about the anaconda-patches mailing list