MCPcopy Index your code
hub / github.com/nodejs/node / GetFailureOutput

Method GetFailureOutput

tools/test.py:121–135  ·  view source on GitHub ↗
(self, failure)

Source from the content-addressed store, hash-verified

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))

Callers 2

PrintFailureOutputMethod · 0.95
PrintFailureOutputMethod · 0.80

Calls 5

EscapeCommandFunction · 0.85
PrintCrashedFunction · 0.85
HasCrashedMethod · 0.45
HasTimedOutMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected