The UEFI and kernel-install tests want to run in an isolated environment
to avoid modifying the host system. Allow running those tests in a
chroot (like schroot).
return 1
fi
- if command -v systemd-detect-virt > /dev/null && ! systemd-detect-virt -c &> /dev/null; then
- echo "This test assumes that it runs inside a CI container."
+ if command -v systemd-detect-virt > /dev/null && ! systemd-detect-virt -c &> /dev/null && ! systemd-detect-virt -r &> /dev/null; then
+ echo "This test assumes that it runs inside a chroot or CI container."
return 1
fi
TEST_DESCRIPTION="kernel-install with root filesystem on ext4 filesystem"
test_check() {
- if command -v systemd-detect-virt > /dev/null && ! systemd-detect-virt -c &> /dev/null; then
- echo "This test assumes that it runs inside a CI container."
+ if command -v systemd-detect-virt > /dev/null && ! systemd-detect-virt -c &> /dev/null && ! systemd-detect-virt -r &> /dev/null; then
+ echo "This test assumes that it runs inside a chroot or CI container."
return 1
fi