parameters: (cmd, name)
docstring: Executes command and checks the return code. If it's not 0, stops redist.
docstring_summary: Executes command and checks the return code. If it's not 0, stops redist.
docstring_tokens: Executes command and checks the return code . If it s not 0 stops redist .
function: def execute_check(cmd, name):
      "Executes command and checks the return code. If it's not 0, stops redist."
      ret = os.system(cmd)
      if ret != 0:
          print "failed to execute: " + cmd
          print name + " Failed!"
          logger.critical(name + " Failed!")
          finish_script(1)
function_tokens: def execute_check ( cmd , name ) : ret = os . system ( cmd ) if ret != 0 : print "failed to execute: " + cmd print name + " Failed!" logger . critical ( name + " Failed!" ) finish_script ( 1 )