summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-17 21:21:54 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-17 21:21:54 +0100
commitb6000fb7e48d049ce78afbdbeaa24d91c85f0191 (patch)
treea78aabdb75f340cb15b6efb0780272238d2ca766 /scripts
parent13686def7e7370ff910abce20b744f5ded932718 (diff)
downloadvyos-1x-b6000fb7e48d049ce78afbdbeaa24d91c85f0191.tar.gz
vyos-1x-b6000fb7e48d049ce78afbdbeaa24d91c85f0191.zip
ssh: clean out current configuration in setUp()
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cli/test_service_ssh.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/cli/test_service_ssh.py b/scripts/cli/test_service_ssh.py
index e882b8f0a..43656be9b 100755
--- a/scripts/cli/test_service_ssh.py
+++ b/scripts/cli/test_service_ssh.py
@@ -38,11 +38,11 @@ class TestServiceSSH(unittest.TestCase):
env = self.session.get_session_env()
self.config = Config(session_env=env)
- def tearDown(self):
- # Delete SSH configuration
+ # ensure we can also run this test on a live system - so lets clean
+ # out the current configuration :)
self.session.delete(base_path)
- self.session.commit()
+ def tearDown(self):
del self.session
def test_ssh(self):