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

Method PreTests

deps/v8/tools/run_perf.py:980–1002  ·  view source on GitHub ↗
(self, node, path)

Source from the content-addressed store, hash-verified

978 self.driver.tear_down()
979
980 def PreTests(self, node, path):
981 if isinstance(node, RunnableConfig):
982 node.ChangeCWD(path)
983 suite_dir = os.path.abspath(os.path.dirname(path))
984 if node.path:
985 bench_rel = os.path.normpath(os.path.join(*node.path))
986 bench_abs = os.path.join(suite_dir, bench_rel)
987 else:
988 bench_rel = '.'
989 bench_abs = suite_dir
990
991 self.driver.push_executable(self.shell_dir, 'bin', node.binary)
992 if self.shell_dir_secondary:
993 self.driver.push_executable(
994 self.shell_dir_secondary, 'bin_secondary', node.binary)
995
996 if isinstance(node, RunnableConfig):
997 self.driver.push_file(bench_abs, node.main, bench_rel)
998 for resource in node.resources:
999 if resource == '*':
1000 self.driver.push_files_rec(bench_abs, bench_rel)
1001 else:
1002 self.driver.push_file(bench_abs, resource, bench_rel)
1003
1004 def _Run(self, runnable, count, secondary=False, post_process=True):
1005 target_dir = 'bin_secondary' if secondary else 'bin'

Callers

nothing calls this directly

Calls 5

ChangeCWDMethod · 0.80
push_executableMethod · 0.80
push_fileMethod · 0.80
push_files_recMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected