diff options
-rwxr-xr-x | scripts/cli/test_interfaces_pppoe.py | 9 |
1 files changed, 9 insertions, 0 deletions
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() |