cosmetic changes for exception logging in stop_all_caches()
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
This commit is contained in:
parent
5afc8af0e8
commit
249e0a5a7e
@ -172,10 +172,11 @@ def stop_all_caches():
|
|||||||
if "No caches running" in list_caches().stdout:
|
if "No caches running" in list_caches().stdout:
|
||||||
return
|
return
|
||||||
TestRun.LOGGER.info("Stop all caches")
|
TestRun.LOGGER.info("Stop all caches")
|
||||||
casctl_stop()
|
stop_output = casctl_stop()
|
||||||
output = list_caches()
|
caches_output = list_caches()
|
||||||
if "No caches running" not in output.stdout:
|
if "No caches running" not in caches_output.stdout:
|
||||||
raise CmdException("Error while stopping caches.", output)
|
raise CmdException(f"Error while stopping caches. "
|
||||||
|
f"Listing caches: {caches_output}", stop_output)
|
||||||
|
|
||||||
|
|
||||||
def remove_all_detached_cores():
|
def remove_all_detached_cores():
|
||||||
|
Loading…
Reference in New Issue
Block a user