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

Method ChangeCWD

deps/v8/tools/run_perf.py:574–583  ·  view source on GitHub ↗

Changes the cwd to to path defined in the current graph. The tests are supposed to be relative to the suite configuration.

(self, suite_path)

Source from the content-addressed store, hash-verified

572 logging.error("No owners provided for %s" % self.name)
573
574 def ChangeCWD(self, suite_path):
575 """Changes the cwd to to path defined in the current graph.
576
577 The tests are supposed to be relative to the suite configuration.
578 """
579 suite_dir = os.path.abspath(os.path.dirname(suite_path))
580 bench_dir = os.path.normpath(os.path.join(*self.path))
581 cwd = os.path.join(suite_dir, bench_dir)
582 logging.debug('Changing CWD to: %s' % cwd)
583 os.chdir(cwd)
584
585 def GetCommandFlags(self, extra_flags=None):
586 suffix = ['--'] + self.test_flags if self.test_flags else []

Callers 2

PreTestsMethod · 0.80
PreTestsMethod · 0.80

Calls 3

debugMethod · 0.80
chdirMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected