(self, failure)
| 119 | self.shutdown_event = threading.Event() |
| 120 | |
| 121 | def GetFailureOutput(self, failure): |
| 122 | output = [] |
| 123 | if failure.output.stderr: |
| 124 | output += ["--- stderr ---" ] |
| 125 | output += [failure.output.stderr.strip()] |
| 126 | if failure.output.stdout: |
| 127 | output += ["--- stdout ---"] |
| 128 | output += [failure.output.stdout.strip()] |
| 129 | output += ["Command: %s" % EscapeCommand(failure.command)] |
| 130 | if failure.HasCrashed(): |
| 131 | output += ["--- %s ---" % PrintCrashed(failure.output.exit_code)] |
| 132 | if failure.HasTimedOut(): |
| 133 | output += ["--- TIMEOUT ---"] |
| 134 | output = "\n".join(output) |
| 135 | return output |
| 136 | |
| 137 | def PrintFailureOutput(self, failure): |
| 138 | print(self.GetFailureOutput(failure)) |
no test coverage detected