def setUp(self):
     helpers.patch(self, [
         'clusterfuzz.binary_providers.ChromiumBuilder.get_gn_args',
         'clusterfuzz.binary_providers.ChromiumBuilder.get_source_dir_path',
         'clusterfuzz.binary_providers.ChromiumBuilder.gclient_runhooks',
         'clusterfuzz.binary_providers.gclient_runhooks_msan',
     ])
     self.builder = binary_providers.MsanChromiumBuilder(
         libs.make_testcase(), libs.make_definition(), libs.make_options())
Esempio n. 2
0
    def setUp(self):
        helpers.patch(self, [
            'clusterfuzz.binary_providers.gclient_runhooks_msan',
            'clusterfuzz.binary_providers.sha_from_revision'
        ])

        testcase = mock.Mock(id=12345, build_url='', revision=4567, gn_args={})
        self.mock_os_environment({'V8_SRC': '/chrome/src'})
        definition = mock.Mock(source_var='V8_SRC', binary_name='binary')
        self.builder = binary_providers.MsanChromiumBuilder(
            testcase, definition, libs.make_options())
  def setUp(self):
    helpers.patch(self, [
        'clusterfuzz.common.execute',
        'clusterfuzz.binary_providers.sha_from_revision',
        'clusterfuzz.binary_providers.ChromiumBuilder.setup_gn_args'])

    testcase = mock.Mock(id=12345, build_url='', revision=4567,
                         gn_args='msan_track_origins=2\n')
    self.mock_os_environment({'V8_SRC': '/chrome/src'})
    binary_definition = mock.Mock(source_var='V8_SRC', binary_name='binary')
    self.builder = binary_providers.MsanChromiumBuilder(
        testcase, binary_definition, False, '/goma/dir', None, False)