summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-19 13:49:32 +0200
committerChristian Breunig <christian@breunig.cc>2024-07-22 21:57:10 +0200
commitb0d836a686a306710b08dbe6f4d2be77ea08c759 (patch)
treee78172f34f0a0253ac1a4cd3decd474ca97c0774 /smoketest
parent3512c7081beb8befa8d4b33f6be01c2c9c7e9be8 (diff)
downloadvyos-1x-b0d836a686a306710b08dbe6f4d2be77ea08c759.tar.gz
vyos-1x-b0d836a686a306710b08dbe6f4d2be77ea08c759.zip
smoketest: T6597: add "commit" debug information
(cherry picked from commit f6485f7df8713298d81ec0d45c548417db111523)
Diffstat (limited to 'smoketest')
-rw-r--r--smoketest/scripts/cli/base_vyostest_shim.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_vyostest_shim.py b/smoketest/scripts/cli/base_vyostest_shim.py
index 4bcc50453..5acfe20fd 100644
--- a/smoketest/scripts/cli/base_vyostest_shim.py
+++ b/smoketest/scripts/cli/base_vyostest_shim.py
@@ -80,6 +80,8 @@ class VyOSUnitTestSHIM:
self._session.discard()
def cli_commit(self):
+ if self.debug:
+ print('commit')
self._session.commit()
# during a commit there is a process opening commit_lock, and run() returns 0
while run(f'sudo lsof -nP {commit_lock}') == 0: