(s string, limit int)
| 1725 | if cmdCtx.Err() == context.DeadlineExceeded { |
| 1726 | bashpkg.TerminateProcessTree(cmd) |
| 1727 | return -1, fmt.Sprintf("Error: Command timed out after %ss.\n\nCommand: %s", formatPythonFloatSeconds(timeout), originalCommand) |
| 1728 | } |
| 1729 | exitCode := 0 |
| 1730 | if cmd.ProcessState != nil { |
| 1731 | exitCode = cmd.ProcessState.ExitCode() |
| 1732 | } else if err != nil { |
| 1733 | exitCode = -1 |
| 1734 | } |
| 1735 | output := stdout.String() |
| 1736 | if stderr.Len() > 0 { |
| 1737 | if output != "" { |
| 1738 | output += "\n" |
| 1739 | } |
no outgoing calls
no test coverage detected