Show logging of tests that have incorrect OS

This commit is contained in:
Michael Boelen 2016-08-13 10:03:33 +02:00
parent e691cb9faf
commit 75d7c5dad6
1 changed files with 8 additions and 3 deletions

View File

@ -22,7 +22,9 @@
#
#################################################################################
#
SETTING_SHOW_REPORT_SOLUTION=0 # default is no
# Set default values (should be equal to default.prf)
SETTING_LOG_TESTS_INCORRECT_OS=1
SETTING_SHOW_REPORT_SOLUTION=0
#
#################################################################################
#
@ -161,8 +163,9 @@
# Do (not) log tests if they have an different operating system
log-tests-incorrect-os | log_tests_incorrect_os)
LogText "Option set: No logging for incorrect OS"
if [ "${VALUE}" = "no" ]; then LOG_INCORRECT_OS=0; else LOG_INCORRECT_OS=1; fi
FIND=$(echo "${VALUE}" | egrep "^(0|false|no)") && SETTING_LOG_TESTS_INCORRECT_OS=0
Debug "Logging of tests with incorrect operating system set to ${SETTING_LOG_TESTS_INCORRECT_OS}"
LOG_INCORRECT_OS=${SETTING_LOG_TESTS_INCORRECT_OS}
;;
# What type of machine we are scanning (eg. desktop, server, server with storage)
@ -442,7 +445,9 @@
#################################################################################
#
# Register the discovered settings
AddSetting "logging-tests-incorrect-os" "${SETTING_LOG_TESTS_INCORRECT_OS}" "Logging of tests that have a different OS"
AddSetting "show-report-solution" "${SETTING_SHOW_REPORT_SOLUTION}" "Show more details in report (solution)"
unset SETTING_LOG_TESTS_INCORRECT_OS SETTING_SHOW_REPORT_SOLUTION
#
#################################################################################
#