Exit on failed preflight check during testing

This commit is contained in:
William Wernert
2021-11-02 16:17:08 -04:00
parent 8670aa6cd8
commit d927e79154

View File

@@ -84,6 +84,8 @@ whiptail_bond_nics_mtu() {
whiptail_cancel() {
[ -n "$TESTING" ] && exit 1
whiptail --title "$whiptail_title" --msgbox "Cancelling Setup." 8 75
if [ -d "/root/installtmp" ]; then
{
@@ -1490,7 +1492,7 @@ whiptail_patch_schedule_select_hours() {
}
whiptail_preflight_err() {
[ -n "$TESTING" ] && return
[ -n "$TESTING" ] && return 1
read -r -d '' message <<- EOM
The so-preflight script failed checking one or more URLs required by setup. Check $setup_log for more details.