From 35b049aa8b90ee41f9c59bf4b2e3610d03505776 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 16 Jan 2021 15:28:10 +0100 Subject: smoketest: interfaces: verify deletion of interfaces When deleting the test interfaces, ensure after each run that there are no leftovers from a previous run, indicating that there was a problem while removing the interfaces. --- smoketest/scripts/cli/base_interfaces_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py index 4a65545a0..fbedca3f3 100644 --- a/smoketest/scripts/cli/base_interfaces_test.py +++ b/smoketest/scripts/cli/base_interfaces_test.py @@ -93,6 +93,11 @@ class BasicInterfaceTest: self.session.commit() del self.session + # Ethernet is handled in its derived class + if 'ethernet' not in self._base_path: + for intf in self._interfaces: + self.assertFalse(os.path.isdir('/sys/class/net/{intf}')) + def test_span_mirror(self): if not self._mirror_interfaces: self.skipTest('not enabled') -- cgit v1.2.3