(*args, **kwargs)
Wrapper around subprocess.call which treats errors as build exceptions.
Wrapper around subprocess.call which treats errors as build exceptions.
Wrapper around subprocess . call which treats errors as build exceptions .
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)
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 )