Allow skipping of tests

This commit is contained in:
mboelen 2016-04-19 12:38:00 +02:00
parent a2594fc370
commit 2886ad0b7e
1 changed files with 12 additions and 3 deletions

View File

@ -26,9 +26,9 @@
for PROFILE in ${PROFILES}; do
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
if ContainsString ":" "${I}"; then
if ContainsString "config:" "${I}"; then
# Old style configuration
OPTION=`echo ${I} | cut -d ':' -f2`
VALUE=`echo ${I} | cut -d ':' -f3 | sed 's/!space!/ /g'`
@ -36,7 +36,7 @@
OPTION=`echo ${I} | cut -d '=' -f1`
VALUE=`echo ${I} | cut -d '=' -f2 | sed 's/!space!/ /g'`
fi
logtext "Profile option set: ${OPTION} (with value ${VALUE})"
Debug "Profile option set: ${OPTION} (with value ${VALUE})"
case ${OPTION} in
@ -167,6 +167,11 @@
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)
test_skip_always)
TEST_SKIP_ALWAYS="${VALUE}"
@ -255,6 +260,10 @@
done
#
#################################################################################
#
Logtext "Skip tests: ${SKIP_TESTS}"
#
#################################################################################
#
# Add group name to report
if [ ! "${GROUP_NAME}" = "" ]; then