MCPcopy Index your code
hub / github.com/CodeClash-ai/CodeClash / assert_zero_exit_code

Function assert_zero_exit_code

codeclash/utils/environment.py:36–42  ·  view source on GitHub ↗
(result: dict, *, logger: logging.Logger | None = None)

Source from the content-addressed store, hash-verified

34
35
36def assert_zero_exit_code(result: dict, *, logger: logging.Logger | None = None) -> dict:
37 if result.get("returncode", 0) != 0:
38 msg = f"Command failed with exit code {result.get('returncode')}:\n{result.get('output')}"
39 if logger is not None:
40 logger.error(msg)
41 raise RuntimeError(msg)
42 return result
43
44
45def copy_between_containers(

Callers 15

copy_logs_from_envMethod · 0.90
get_environmentMethod · 0.90
_pre_round_setupMethod · 0.90
execute_roundMethod · 0.90
execute_roundMethod · 0.90
execute_roundMethod · 0.90
execute_roundMethod · 0.90
execute_roundMethod · 0.90
execute_roundMethod · 0.90
__init__Method · 0.90
post_run_hookMethod · 0.90
reset_and_apply_patchMethod · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected