tests/vendor/ceedling/lib/tool_executor_helper.rb
# if command succeeded and we have verbosity cranked up, spill our guts
if command succeeded and we have verbosity cranked up, spill our guts
if command succeeded and we have verbosity cranked up spill our guts
def print_happy_results(command_str, shell_result, boom=true)
    if ((shell_result[:exit_code] == 0) or ((shell_result[:exit_code] != 0) and not boom))
      output  = "> Shell executed command:\n"
      output += "#{command_str}\n"
      output += "> Produced output:\n"             if (not shell_result[:output].empty?)
      output += "#{shell_result[:output].strip}\n" if (not shell_result[:output].empty?)
      output += "> And exited with status: [#{shell_result[:exit_code]}].\n" if (shell_result[:exit_code] != 0)
      output += "\n"
      @streaminator.stdout_puts(output, Verbosity::OBNOXIOUS)
    end
  end
def print_happy_results ( command_str , shell_result , boom = true ) if ( ( shell_result [ :exit_code ] == 0 ) or ( ( shell_result [ :exit_code ] != 0 ) and not boom ) ) output = "> Shell executed command:\n" output += "#{command_str}\n" output += "> Produced output:\n" if ( not shell_result [ :output ] . empty? ) output += "#{shell_result[:output].strip}\n" if ( not shell_result [ :output ] . empty? ) output += "> And exited with status: [#{shell_result[:exit_code]}].\n" if ( shell_result [ :exit_code ] != 0 ) output += "\n" @streaminator . stdout_puts ( output , Verbosity :: OBNOXIOUS ) end end
if command succeeded and we have verbosity cranked up, spill our guts
if command succeeded and we have verbosity cranked up spill our guts
command_str
shell_result
boom