Allow skipping of tests

This commit is contained in:
mboelen 2016-04-19 12:38:00 +02:00
parent a2594fc370
commit 2886ad0b7e

View File

@ -26,9 +26,9 @@
for PROFILE in ${PROFILES}; do for PROFILE in ${PROFILES}; do
logtext "Reading profile/configuration ${PROFILE}" logtext "Reading profile/configuration ${PROFILE}"
FIND=`egrep "^config:|^[a-z].*=" ${PROFILE} | sed 's/ /!space!/g'` FIND=`egrep "^config:|^[a-z-].*=" ${PROFILE} | sed 's/ /!space!/g'`
for I in ${FIND}; do for I in ${FIND}; do
if ContainsString ":" "${I}"; then if ContainsString "config:" "${I}"; then
# Old style configuration # Old style configuration
OPTION=`echo ${I} | cut -d ':' -f2` OPTION=`echo ${I} | cut -d ':' -f2`
VALUE=`echo ${I} | cut -d ':' -f3 | sed 's/!space!/ /g'` VALUE=`echo ${I} | cut -d ':' -f3 | sed 's/!space!/ /g'`
@ -36,7 +36,7 @@
OPTION=`echo ${I} | cut -d '=' -f1` OPTION=`echo ${I} | cut -d '=' -f1`
VALUE=`echo ${I} | cut -d '=' -f2 | sed 's/!space!/ /g'` VALUE=`echo ${I} | cut -d '=' -f2 | sed 's/!space!/ /g'`
fi fi
logtext "Profile option set: ${OPTION} (with value ${VALUE})" Debug "Profile option set: ${OPTION} (with value ${VALUE})"
case ${OPTION} in case ${OPTION} in
@ -167,6 +167,11 @@
SHOW_TOOL_TIPS="${VALUE}" SHOW_TOOL_TIPS="${VALUE}"
;; ;;
# Which tests to skip (skip-test=ABCD-1234 or skip-test=ABCD-1234:subtest)
skip-test)
SKIP_TESTS="${SKIP_TESTS} ${VALUE}"
;;
# Tests to always skip (useful for false positives or problematic tests) # Tests to always skip (useful for false positives or problematic tests)
test_skip_always) test_skip_always)
TEST_SKIP_ALWAYS="${VALUE}" TEST_SKIP_ALWAYS="${VALUE}"
@ -255,6 +260,10 @@
done done
# #
################################################################################# #################################################################################
#
Logtext "Skip tests: ${SKIP_TESTS}"
#
#################################################################################
# #
# Add group name to report # Add group name to report
if [ ! "${GROUP_NAME}" = "" ]; then if [ ! "${GROUP_NAME}" = "" ]; then