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

Method HasRun

tools/test.py:466–481  ·  view source on GitHub ↗
(self, output)

Source from the content-addressed store, hash-verified

464 self.PrintProgress(case.GetLabel())
465
466 def HasRun(self, output):
467 if output.UnexpectedOutput():
468 self.ClearLine(self.last_status_length)
469 self.PrintFailureHeader(output.test)
470 stdout = output.output.stdout.strip()
471 if len(stdout):
472 print(self.templates['stdout'] % stdout)
473 stderr = output.output.stderr.strip()
474 if len(stderr):
475 print(self.templates['stderr'] % stderr)
476 print("Command: %s" % EscapeCommand(output.command))
477 if output.HasCrashed():
478 print("--- %s ---" % PrintCrashed(output.output.exit_code))
479 if output.HasTimedOut():
480 print("--- TIMEOUT ---")
481 print("\n") # Two blank lines between failures, for visual separation
482
483 def Truncate(self, str, length):
484 if length and (len(str) > (length - 3)):

Callers

nothing calls this directly

Calls 8

EscapeCommandFunction · 0.85
PrintCrashedFunction · 0.85
UnexpectedOutputMethod · 0.80
PrintFailureHeaderMethod · 0.80
printFunction · 0.50
ClearLineMethod · 0.45
HasCrashedMethod · 0.45
HasTimedOutMethod · 0.45

Tested by

no test coverage detected