summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_interfaces_virtual-ethernet.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-10-20 18:56:28 +0200
committerChristian Breunig <christian@breunig.cc>2025-10-21 21:03:16 +0200
commitb1d8f616ffd6a3eb27e28b2a1d2be30496604af6 (patch)
tree0d2e3b84f380bba861f1a03244c4be52611cdc71 /smoketest/scripts/cli/test_interfaces_virtual-ethernet.py
parent30ff9cfc3dbeb888ea6a22468a002f35ad439856 (diff)
downloadvyos-1x-b1d8f616ffd6a3eb27e28b2a1d2be30496604af6.tar.gz
vyos-1x-b1d8f616ffd6a3eb27e28b2a1d2be30496604af6.zip
smoketest: T7948: always verify FRRs mgmtd PID is unchanged
Upgrades to FRR 10.4 have shown that there are cases where FRRs mgmtd will SIGSEGV - to cover for this case and fail the smoketests we will monitor the PID of the mgmtd process.
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_virtual-ethernet.py')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_virtual-ethernet.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_virtual-ethernet.py b/smoketest/scripts/cli/test_interfaces_virtual-ethernet.py
index c2149440b..0a581951d 100755
--- a/smoketest/scripts/cli/test_interfaces_virtual-ethernet.py
+++ b/smoketest/scripts/cli/test_interfaces_virtual-ethernet.py
@@ -20,6 +20,7 @@ from netifaces import interfaces # pylint: disable = no-name-in-module
from base_interfaces_test import BasicInterfaceTest
from base_vyostest_shim import VyOSUnitTestSHIM
+from vyos.frrender import mgmt_daemon
from vyos.utils.process import process_named_running
class VEthInterfaceTest(BasicInterfaceTest.TestCase):
@@ -47,6 +48,9 @@ class VEthInterfaceTest(BasicInterfaceTest.TestCase):
for intf in self._interfaces:
self.assertNotIn(intf, interfaces())
+ # check process health and continuity
+ self.assertEqual(self.mgmt_daemon_pid, process_named_running(mgmt_daemon))
+
@classmethod
def tearDownClass(cls):
# No daemon started during tests should remain running