(out []byte, shell models.Shell)
| 71 | } |
| 72 | |
| 73 | func processOutput(out []byte, shell models.Shell) string { |
| 74 | outs := tui.Dim(" <no output>") |
| 75 | if out != nil { |
| 76 | if toOutput == "" { |
| 77 | outs = fmt.Sprintf("\n\n%s\n", str.Trim(string(out))) |
| 78 | } else { |
| 79 | outs = toOutputFile(shell, out) |
| 80 | } |
| 81 | } |
| 82 | return outs |
| 83 | } |
| 84 | |
| 85 | func onTestFail(sh models.Shell, err error) { |
| 86 | log.Warning("shell %s failed with: %s", tui.Bold(sh.Name), err) |
no test coverage detected