def _create_builder(self, tmp_dir): """Creates an InternalGithubBuilder and returns it.""" config = create_config(project_name=self.PROJECT_NAME, project_repo_name=self.PROJECT_REPO_NAME, workspace=tmp_dir, sanitizer=self.SANITIZER, commit_sha=self.COMMIT_SHA, pr_ref=self.PR_REF, is_github=True) ci_system = continuous_integration.get_ci(config) return build_fuzzers.Builder(config, ci_system)
def _create_builder(self, tmp_dir, oss_fuzz_project_name='myproject'): """Creates an InternalGithubBuilder and returns it.""" config = test_helpers.create_build_config( oss_fuzz_project_name=oss_fuzz_project_name, project_repo_name=self.PROJECT_REPO_NAME, workspace=tmp_dir, sanitizer=self.SANITIZER, commit_sha=self.COMMIT_SHA, pr_ref=self.PR_REF, is_github=True) ci_system = continuous_integration.get_ci(config) builder = build_fuzzers.Builder(config, ci_system) builder.repo_manager = repo_manager.RepoManager('/fake') return builder