[Buildroot] [PATCH v6 4/6] support/testing: add polkit systemd test
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sun Dec 8 15:07:04 UTC 2019
On Fri, 6 Dec 2019 15:46:47 -0800
aduskett at gmail.com wrote:
> +class TestPolkitSystemd(infra.basetest.BRTest):
> + br2_external = [infra.filepath("tests/package/br2-external/polkit")]
> + config = \
> + """
> + BR2_aarch64=y
> + BR2_TOOLCHAIN_EXTERNAL=y
> + BR2_INIT_SYSTEMD=y
> + BR2_JLEVEL=10
> + BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
> + BR2_LINUX_KERNEL=y
> + BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> + BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.86"
> + BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> + BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
This requires building the kernel, while the test infrastructure
provides two pre-compiled kernels, one for ARMv7 and one for ARMv5.
Isn't it possible to use them ?
> + def test_run(self):
> + self.login()
> +
> + cmd = "su brtest -c '/bin/systemctl restart systemd-timesyncd.service'"
> + self.assertRunOk(cmd, timeout=10)
I'm confused, shouldn't this command fail, since it's executed before
you copy the rule at the right place ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list