From 93f02429533fdaa0b520779a82c992f6e3d43466 Mon Sep 17 00:00:00 2001 From: oniko94 Date: Tue, 18 Mar 2025 14:12:45 +0200 Subject: T6353: Change cli_commit to return the command output --- smoketest/scripts/cli/base_vyostest_shim.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'smoketest') 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 -- cgit v1.2.3