frostfs-testlib/tests/helpers.py
Vladimir Domnich f6ee129354 Implement basic version of local shell
Also added two simple reporters that can be used by the shell to report command execution details.

Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-09-09 18:12:42 +04:00

9 lines
203 B
Python

import traceback
def format_error_details(error: Exception) -> str:
return "".join(traceback.format_exception(
etype=type(error),
value=error,
tb=error.__traceback__)
)