diff --git a/include/profiles b/include/profiles index d029ca56..6aa64620 100644 --- a/include/profiles +++ b/include/profiles @@ -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 # ################################################################################# #