MCPcopy Create free account
hub / github.com/LBANN/lbann / assert_success

Function assert_success

ci_test/common_python/tools.py:670–675  ·  view source on GitHub ↗
(return_code, error_file_name)

Source from the content-addressed store, hash-verified

668
669
670def assert_success(return_code, error_file_name):
671 if return_code != 0:
672 error_line = get_error_line(error_file_name)
673 raise AssertionError(
674 '{el}\nreturn_code={rc}\nSee {efn}'.format(
675 rc=return_code, el=error_line, efn=error_file_name))
676
677
678def assert_failure(return_code, expected_error, error_file_name):

Callers 1

test_funcFunction · 0.85

Calls 1

get_error_lineFunction · 0.85

Tested by 1

test_funcFunction · 0.68