tools/coverity/coverity.py
def _RunCommand(cmd, dry_run, shell=False, echo_cmd=True):
  """Runs the command if dry_run is false, otherwise just prints the command."""
  if echo_cmd:
    print(cmd)
  if not dry_run:
    return subprocess.call(cmd, shell=shell)
  else:
    return 0
Runs the command if dry_run is false, otherwise just prints the command.
Runs the command if dry_run is false, otherwise just prints the command.
Runs the command if dry_run is false otherwise just prints the command .
def _RunCommand(cmd, dry_run, shell=False, echo_cmd=True):
  if echo_cmd:
    print(cmd)
  if not dry_run:
    return subprocess.call(cmd, shell=shell)
  else:
    return 0
def _RunCommand ( cmd , dry_run , shell = False , echo_cmd = True ) : if echo_cmd : print ( cmd ) if not dry_run : return subprocess . call ( cmd , shell = shell ) else : return 0
Runs the command if dry_run is false, otherwise just prints the command.
Runs the command if dry_run is false otherwise just prints the command .
"""Runs the command if dry_run is false, otherwise just prints the command."""
cmd
dry_run
shell
echo_cmd