diff options
Diffstat (limited to 'include/tests_ports_packages')
-rw-r--r-- | include/tests_ports_packages | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages index 57f0f25b..2f0b98da 100644 --- a/include/tests_ports_packages +++ b/include/tests_ports_packages @@ -1316,11 +1316,18 @@ # Only report exception if there are kernels actually there. For example, LXC use the kernel of host system case "${OS}" in "Linux") - if [ -d "${ROOTDIR}boot" ]; then - if [ -z "$(${FINDBINARY} /boot -maxdepth 1 -type f -name 'vmlinuz*' -print -quit)" ]; then - ReportException "${TEST_NO}" "Could not find any kernel packages via package manager" - fi - fi + case "${CONTAINER_TYPE}" in + "LXC") + LogText "Info: LXC shares the kernel with host, so skipping further testing" + ;; + *) + if [ -d "${ROOTDIR}boot" ]; then + if [ -z "$(${FINDBINARY} /boot -maxdepth 1 -type f -name 'vmlinuz*' -print -quit)" ]; then + ReportException "${TEST_NO}" "Could not find any kernel packages via package manager" + fi + fi + ;; + esac ;; *) ReportException "${TEST_NO}" "Could not find any kernel packages via package manager" |