support/testing/tests/package/test_python_sdbus_networkmanager: use more recent toolchain

Since the bump of NetworkManager to 1.50.0 in Buildroot commit
489d1f9249, the
tests.package.test_python_sdbus_networkmanager.TestPythonPy3SdbusNetworkmanager
is failing to build as NM >= 1.50.0 needs headers >= 4.20.

We fix this test by using a newer toolchain. This means we can't use
anymore the basic toolchain config, so we use a fully specific
defconfig for this test.

Fixes:

  https://gitlab.com/buildroot.org/buildroot/-/jobs/9019173666

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Thomas Petazzoni
2025-02-04 14:13:55 +01:00
parent 097faead4a
commit 91e51e2679

View File

@@ -3,12 +3,21 @@ from tests.package.test_python import TestPythonPackageBase
class TestPythonPy3SdbusNetworkmanager(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \
# Can't use TestPythonPackageBase.config because we need headers
# >= 4.20 for network-manager, so we have to use the bleeding-edge
# toolchain.
config = \
"""
BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_BLEEDING_EDGE=y
BR2_PACKAGE_PYTHON3=y
BR2_INIT_SYSTEMD=y
BR2_PACKAGE_NETWORK_MANAGER=y
BR2_PACKAGE_PYTHON_SDBUS_NETWORKMANAGER=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
"""
sample_scripts = ["tests/package/sample_python_sdbus_networkmanager.py"]