From 8417f55135979be657ae0a3d3e010104c73fc400 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 22 May 2020 12:30:47 +0200 Subject: Revert "pppoe: do not check manually if pppoe process runs" This reverts commit f0b453c6709b2830d04981c09ec4075b978a5427. Test was right - pppd did not run (it was a bug T2488) --- scripts/cli/test_interfaces_pppoe.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/cli/test_interfaces_pppoe.py b/scripts/cli/test_interfaces_pppoe.py index 0e19f514a..9a9a1512c 100755 --- a/scripts/cli/test_interfaces_pppoe.py +++ b/scripts/cli/test_interfaces_pppoe.py @@ -81,5 +81,14 @@ class PPPoEInterfaceTest(unittest.TestCase): self.assertTrue(cur_password == password) self.assertTrue(cur_ifname == interface) + # Check if ppp process is running in the interface in question + running = False + for p in process_iter(): + if "pppd" in p.name(): + if interface in p.cmdline(): + running = True + + self.assertTrue(running) + if __name__ == '__main__': unittest.main() -- cgit v1.2.3