diff options
author | Simon Biewald <simon@fam-biewald.de> | 2020-08-15 18:44:34 +0300 |
---|---|---|
committer | Simon Biewald <simon@fam-biewald.de> | 2020-08-15 18:44:34 +0300 |
commit | 4a03c613438d25944680ed22f67276dff755ff3c (patch) | |
tree | ffe74c5ef9f91e307504982554ce53e5ddfb5f22 /include/tests_boot_services | |
parent | 3abc39598a3b367825bc3bf3dcfd75dce040ee50 (diff) |
Check LINUX_VERSION_LIKE in various tests
This affects:
BOOT-5180, KRNL-5622, KRNL-5788, PKGS-7388, PKGS-7390, PKGS-7394,
PKGS-7366, and PKGS-7420.
Diffstat (limited to 'include/tests_boot_services')
-rw-r--r-- | include/tests_boot_services | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services index fe5707e4..19db6a83 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -656,7 +656,13 @@ # Test : BOOT-5180 # Description : Check for Linux boot services (Debian style) # Notes : Debian 8+ shows runlevel 5 - if [ "${LINUX_VERSION}" = "Debian" -o "${LINUX_VERSION}" = "Ubuntu" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi + if [ "${LINUX_VERSION}" = "Debian" ] || [ "${LINUX_VERSION}" = "Ubuntu" ] || + [ "${LINUX_VERSION_LIKE}" = "Debian" ] || [ "${LINUX_VERSION_LIKE}" = "Ubuntu" ]; then + PREQS_MET="YES" + else + PREQS_MET="NO" + fi + Register --test-no BOOT-5180 --os Linux --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check for Linux boot services (Debian style)" if [ ${SKIPTEST} -eq 0 ]; then # Runlevel check |