parameters: (*args, **kwargs)
docstring: Wrapper around subprocess.call which treats errors as build exceptions.
docstring_summary: Wrapper around subprocess.call which treats errors as build exceptions.
docstring_tokens: Wrapper around subprocess . call which treats errors as build exceptions .
function: def CallSubProcess(*args, **kwargs):
    """Wrapper around subprocess.call which treats errors as build exceptions."""
    with open(os.devnull) as devnull_fd:
      retcode = subprocess.call(stdin=devnull_fd, *args, **kwargs)
    if retcode != 0:
      print '@@@STEP_EXCEPTION@@@'
      sys.exit(1)
function_tokens: def CallSubProcess ( * args , * * kwargs ) : with open ( os . devnull ) as devnull_fd : retcode = subprocess . call ( stdin = devnull_fd , * args , * * kwargs ) if retcode != 0 : print '@@@STEP_EXCEPTION@@@' sys . exit ( 1 )