From 249e0a5a7e6fd8da9588d0290d9a348b3ceae989 Mon Sep 17 00:00:00 2001 From: Karolina Rogowska Date: Fri, 20 Aug 2021 15:44:32 +0200 Subject: [PATCH] cosmetic changes for exception logging in stop_all_caches() Signed-off-by: Karolina Rogowska --- test/functional/api/cas/casadm.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/functional/api/cas/casadm.py b/test/functional/api/cas/casadm.py index 7c29454..5f21dc3 100644 --- a/test/functional/api/cas/casadm.py +++ b/test/functional/api/cas/casadm.py @@ -172,10 +172,11 @@ def stop_all_caches(): if "No caches running" in list_caches().stdout: return TestRun.LOGGER.info("Stop all caches") - casctl_stop() - output = list_caches() - if "No caches running" not in output.stdout: - raise CmdException("Error while stopping caches.", output) + stop_output = casctl_stop() + caches_output = list_caches() + if "No caches running" not in caches_output.stdout: + raise CmdException(f"Error while stopping caches. " + f"Listing caches: {caches_output}", stop_output) def remove_all_detached_cores():