diff options
author | oniko94 <onikolaiev94@outlook.com> | 2025-03-18 14:12:45 +0200 |
---|---|---|
committer | oniko94 <onikolaiev94@outlook.com> | 2025-03-18 14:31:45 +0200 |
commit | 93f02429533fdaa0b520779a82c992f6e3d43466 (patch) | |
tree | b5422af7268dac20dda715b5b13fb1b7488b0502 /smoketest | |
parent | b5b3e85f0bc8170b97d3e1af2383477c0854914d (diff) | |
download | vyos-1x-93f02429533fdaa0b520779a82c992f6e3d43466.tar.gz vyos-1x-93f02429533fdaa0b520779a82c992f6e3d43466.zip |
T6353: Change cli_commit to return the command output
Diffstat (limited to 'smoketest')
-rw-r--r-- | smoketest/scripts/cli/base_vyostest_shim.py | 5 |
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 6da4ed9e6..f0674f187 100644 --- a/smoketest/scripts/cli/base_vyostest_shim.py +++ b/smoketest/scripts/cli/base_vyostest_shim.py @@ -98,9 +98,14 @@ class VyOSUnitTestSHIM: # returns 0 while run(f'sudo lsof -nP {commit_lock}') == 0: sleep(0.250) + # Return the output of commit + # Necessary for testing Warning cases + out = self._session.commit() # Wait for CStore completion for fast non-interactive commits sleep(self._commit_guard_time) + return out + def op_mode(self, path : list) -> None: """ Execute OP-mode command and return stdout |