summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-18 22:11:27 +0100
committerChristian Breunig <christian@breunig.cc>2024-01-18 22:11:27 +0100
commit7f07227a24666195dd268a7a340e9e8b5ed69e0e (patch)
treee6ca1f8fa1b8425947237cbba11281ba09d41b95 /smoketest
parentc4d23ec1993e766c216af7f10b3f2ee07458fc95 (diff)
downloadvyos-1x-7f07227a24666195dd268a7a340e9e8b5ed69e0e.tar.gz
vyos-1x-7f07227a24666195dd268a7a340e9e8b5ed69e0e.zip
smoketest: T5779: clear conntrack config on test startup
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_system_conntrack.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_system_conntrack.py b/smoketest/scripts/cli/test_system_conntrack.py
index 0dbc97d49..cea34138e 100755
--- a/smoketest/scripts/cli/test_system_conntrack.py
+++ b/smoketest/scripts/cli/test_system_conntrack.py
@@ -31,6 +31,14 @@ def get_sysctl(parameter):
return read_file(f'/proc/sys/{tmp}')
class TestSystemConntrack(VyOSUnitTestSHIM.TestCase):
+ @classmethod
+ def setUpClass(cls):
+ super(TestSystemConntrack, cls).setUpClass()
+
+ # ensure we can also run this test on a live system - so lets clean
+ # out the current configuration :)
+ cls.cli_delete(cls, base_path)
+
def tearDown(self):
self.cli_delete(base_path)
self.cli_commit()