def check_status(args, status, expected_rc=0, expected_sig=None, cmd_err=None):
    if status >= 0:
        check_exit_code(args, status, expected_rc, cmd_err)
    else:
        check_signal(args, -status, expected_sig, cmd_err)
dataset/ETHPy150Open facebookarchive/git-review/src/gitreview/proc.py/check_status/original