def setUp(self):
     helpers.patch(self, [
         'clusterfuzz.binary_providers.install_build_deps',
         'clusterfuzz.binary_providers.ChromiumBuilder.get_source_dir_path',
         'clusterfuzz.binary_providers.ChromiumBuilder.install_deps',
     ])
     self.mock.get_source_dir_path.return_value = '/chrome/src'
     self.builder = binary_providers.ChromiumBuilder32Bit(
         libs.make_testcase(), libs.make_definition(), libs.make_options())
  def setUp(self):
    helpers.patch(self, [
        'clusterfuzz.common.execute_with_shell',
        'clusterfuzz.binary_providers.sha_from_revision',
        'clusterfuzz.binary_providers.ChromiumBuilder.pre_build_steps'])

    testcase = mock.Mock(id=12345, build_url='', revision=4567)
    self.mock_os_environment({'V8_SRC': '/chrome/src'})
    binary_definition = mock.Mock(source_var='V8_SRC', binary_name='binary')
    self.builder = binary_providers.ChromiumBuilder32Bit(
        testcase, binary_definition, False, '/goma/dir', None, False)
Example #3
0
    def setUp(self):
        helpers.patch(self, [
            'clusterfuzz.binary_providers.install_build_deps_32bit',
            'clusterfuzz.binary_providers.sha_from_revision',
            'clusterfuzz.binary_providers.ChromiumBuilder.install_deps'
        ])

        testcase = mock.Mock(id=12345, build_url='', revision=4567)
        self.mock_os_environment({'CHROMIUM_SRC': '/chrome/src'})
        definition = mock.Mock(source_var='CHROMIUM_SRC', binary_name='binary')
        self.builder = binary_providers.ChromiumBuilder32Bit(
            testcase, definition, libs.make_options())