summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/base_vyostest_shim.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-06-24 19:34:05 +0200
committerGitHub <noreply@github.com>2024-06-24 19:34:05 +0200
commit0259c4337c80264d5818193a7023e5bd652b36af (patch)
tree7e8a8f89e20d89a67556a6140f24b474b3ad19ee /smoketest/scripts/cli/base_vyostest_shim.py
parent340e44c59663d2b94e7b1fddb05c49a3ad737938 (diff)
parent99c81fbe8fa0d6dd257c00a8e7fe1c5e1a15ca72 (diff)
downloadvyos-1x-0259c4337c80264d5818193a7023e5bd652b36af.tar.gz
vyos-1x-0259c4337c80264d5818193a7023e5bd652b36af.zip
Merge pull request #3719 from vyos/mergify/bp/circinus/pr-3701
configd: T6504: send sudo_user on session init and set env variable (backport #3701)
Diffstat (limited to 'smoketest/scripts/cli/base_vyostest_shim.py')
-rw-r--r--smoketest/scripts/cli/base_vyostest_shim.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_vyostest_shim.py b/smoketest/scripts/cli/base_vyostest_shim.py
index efaa74fe0..4bcc50453 100644
--- a/smoketest/scripts/cli/base_vyostest_shim.py
+++ b/smoketest/scripts/cli/base_vyostest_shim.py
@@ -74,6 +74,11 @@ class VyOSUnitTestSHIM:
print('del ' + ' '.join(config))
self._session.delete(config)
+ def cli_discard(self):
+ if self.debug:
+ print('DISCARD')
+ self._session.discard()
+
def cli_commit(self):
self._session.commit()
# during a commit there is a process opening commit_lock, and run() returns 0