summaryrefslogtreecommitdiff
path: root/scripts/cli
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-22 12:30:47 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-22 12:30:53 +0200
commit8417f55135979be657ae0a3d3e010104c73fc400 (patch)
treee863961eb11f07c06890a93231bdf7250f8772f8 /scripts/cli
parentf0b453c6709b2830d04981c09ec4075b978a5427 (diff)
downloadvyos-1x-8417f55135979be657ae0a3d3e010104c73fc400.tar.gz
vyos-1x-8417f55135979be657ae0a3d3e010104c73fc400.zip
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)
Diffstat (limited to 'scripts/cli')
-rwxr-xr-xscripts/cli/test_interfaces_pppoe.py9
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()