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

Method HasRun

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

Source from the content-addressed store, hash-verified

422 pass
423
424 def HasRun(self, output):
425 # Print test name as (for example) "parallel/test-assert". Tests that are
426 # scraped from the addons documentation are all named test.js, making it
427 # hard to decipher what test is running when only the filename is printed.
428 prefix = abspath(join(dirname(__file__), '../test')) + os.sep
429 command = output.command[-1]
430 command = NormalizePath(command, prefix)
431
432 stdout = output.output.stdout.strip()
433 printed_file = False
434 for line in stdout.splitlines():
435 if (
436 (line.startswith("[aborted optimiz") or line.startswith("[disabled optimiz")) and
437 ("because:" in line or "reason:" in line)
438 ):
439 if not printed_file:
440 printed_file = True
441 print('==== %s ====' % command)
442 self.failed.append(output)
443 print(' %s' % line)
444
445 def Done(self):
446 pass

Callers

nothing calls this directly

Calls 7

joinFunction · 0.90
dirnameFunction · 0.90
abspathFunction · 0.85
NormalizePathFunction · 0.85
printFunction · 0.50
splitlinesMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected