Allow OpenBSD boot loader test for all platforms

This commit is contained in:
mboelen 2014-11-04 01:36:56 +01:00
parent 525c430d84
commit dcef76d250
1 changed files with 3 additions and 1 deletions

View File

@ -261,7 +261,7 @@
# Test : BOOT-5159
# Description : Check for OpenBSD boot loader
# More info : Only OpenBSD
Register --test-no BOOT-5159 --os OpenBSD --platform i386 --weight L --network NO --description "Check for OpenBSD boot loader presence"
Register --test-no BOOT-5159 --os OpenBSD --weight L --network NO --description "Check for OpenBSD boot loader presence"
if [ ${SKIPTEST} -eq 0 ]; then
FOUND=0
# Boot files
@ -290,6 +290,7 @@
ReportSuggestion ${TEST_NO} "Add 'boot' to the /etc/boot.conf file to disable the default 5 seconds waiting time."
fi
if [ ${FOUND} -eq 1 ]; then
logtext "Result: found OpenBSD boot loader"
BOOT_LOADER="OpenBSD"
BOOT_LOADER_FOUND=1
fi
@ -566,6 +567,7 @@
ReportException "${TEST_NO}:1" "No uptime test available for this operating system (/proc/uptime missing)"
fi
;;
MacOS)
if [ ! "${SYSCTLBINARY}" = "" ]; then
FIND=`${SYSCTLBINARY} kern.boottime | awk '{ print $5 }' | sed -e 's/,//'`