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

Method test_gen_swarming_script

deps/v8/tools/mb/mb_test.py:459–492  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

457 mbw.files)
458
459 def test_gen_swarming_script(self):
460 files = {
461 '/tmp/swarming_targets':
462 'cc_perftests\n',
463 '/fake_src/testing/buildbot/gn_isolate_map.pyl':
464 ("{'cc_perftests': {"
465 " 'label': '//cc:cc_perftests',"
466 " 'type': 'script',"
467 " 'script': '/fake_src/out/Default/test_script.py',"
468 "}}\n"),
469 }
470 mbw = self.fake_mbw(files=files)
471
472 def fake_call(cmd, env=None, buffer_output=True, input=''):
473 del cmd
474 del env
475 del buffer_output
476 del input
477 mbw.files['/fake_src/out/Default/cc_perftests.runtime_deps'] = (
478 'cc_perftests\n')
479 return 0, '', ''
480
481 mbw.Call = fake_call
482
483 self.check([
484 'gen', '-c', 'debug_remoteexec', '--swarming-targets-file',
485 '/tmp/swarming_targets', '--isolate-map-file',
486 '/fake_src/testing/buildbot/gn_isolate_map.pyl', '//out/Default'
487 ],
488 mbw=mbw,
489 ret=0)
490 self.assertIn('/fake_src/out/Default/cc_perftests.isolate', mbw.files)
491 self.assertIn('/fake_src/out/Default/cc_perftests.isolated.gen.json',
492 mbw.files)
493
494 def test_multiple_isolate_maps(self):
495 files = {

Callers

nothing calls this directly

Calls 2

fake_mbwMethod · 0.95
checkMethod · 0.95

Tested by

no test coverage detected