From 43e62b5835049c012100819de0b1c8ce93c2a9bf Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sun, 31 May 2026 15:25:33 +0200 Subject: [PATCH] support/testing: TestPppd: force the baudrate for pppd Since the ARM AArch64 toolchain toolchain bump [1], the TestPppd fail at runtime since ttyppp0 and ttyppp1 interfaces were not created properly: pppd[87]: pppd 2.5.2 started by root, uid 0 pppd[87]: Baud rate for /dev/ttyppp1 is 0; need explicit baud rate The new toolchain uses glibc 2.42 that include a rework in termios "implement arbitrary and split speeds in termios" to support BOTHER [2]. This rework seems to conflict with pppd workaround [3] introduced when BOTHER was not supported in Glibc. Fix this by setting the baudrate on pppd command line (we already set this baudrate on socat command line). Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/14607335920 (TestPppd) [1] 8d413d61792724877bfd886fe3ba519fb5259566 [2] https://sourceware.org/git/?p=glibc.git;a=commit;h=5cf101a85aae0d703cdd8ed7b25fe288e41fdacb [3] https://github.com/ppp-project/ppp/commit/d65f6713c8514b016629b87d44d5154d70776f7b Fix-suggested-by: Julien Olivain Signed-off-by: Romain Naour Signed-off-by: Julien Olivain (cherry picked from commit 50d772b66bb0ab281aef2bade584de39b4cd6da5) Signed-off-by: Thomas Perale --- support/testing/tests/package/test_pppd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/testing/tests/package/test_pppd.py b/support/testing/tests/package/test_pppd.py index 015f10f02d..0ba1ff7ee2 100644 --- a/support/testing/tests/package/test_pppd.py +++ b/support/testing/tests/package/test_pppd.py @@ -81,7 +81,7 @@ class TestPppd(infra.basetest.BRTest): # We start our (fake) remote pppd instance, in our netns. cmd = f"ip netns exec {namespace} " - cmd += f"pppd noauth ifname ppp1 {pty1} {remote_ip}:{local_ip}" + cmd += f"pppd noauth ifname ppp1 {pty1} 115200 {remote_ip}:{local_ip}" self.assertRunOk(cmd) # We wait a bit for the pppd to settle... @@ -89,7 +89,7 @@ class TestPppd(infra.basetest.BRTest): # We start out local pppd instance, this time in the default # network namespace. - cmd = f"pppd noauth ifname ppp0 {pty0} {local_ip}:{remote_ip}" + cmd = f"pppd noauth ifname ppp0 {pty0} 115200 {local_ip}:{remote_ip}" self.assertRunOk(cmd) # We wait again...