diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-16 15:28:10 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-16 15:31:38 +0100 |
commit | 6049ed9f329f5435846d63404285bee3a5633eca (patch) | |
tree | 77ceb342f5d87293f227a292797e3dd3586ea1a6 /smoketest/scripts/cli/base_interfaces_test.py | |
parent | 8dab92c65127a629df6607e7b46504a115943f72 (diff) | |
download | vyos-1x-6049ed9f329f5435846d63404285bee3a5633eca.tar.gz vyos-1x-6049ed9f329f5435846d63404285bee3a5633eca.zip |
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.
(cherry picked from commit 35b049aa8b90ee41f9c59bf4b2e3610d03505776)
Diffstat (limited to 'smoketest/scripts/cli/base_interfaces_test.py')
-rw-r--r-- | smoketest/scripts/cli/base_interfaces_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
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') |