aboutsummaryrefslogtreecommitdiff
path: root/infra/base-images/base-builder
diff options
context:
space:
mode:
authorjonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2020-12-07 10:50:11 -0800
committerGitHub <noreply@github.com>2020-12-07 10:50:11 -0800
commitb0b99d5ccdf5e2e49cfe3138fbcf64e6fef6ea7f (patch)
tree4afa704c82330c785a468ecfe5097314e7b06365 /infra/base-images/base-builder
parenta24cebec02a0c97247bef31963d5f5fadbaa4ebf (diff)
downloadoss-fuzz-b0b99d5ccdf5e2e49cfe3138fbcf64e6fef6ea7f.tar.gz
Cifuzz external build (#4656)
* Support building fuzzers for projects outside of OSS-Fuzz * Use retry wrapper * Fix some tests.
Diffstat (limited to 'infra/base-images/base-builder')
-rw-r--r--infra/base-images/base-builder/detect_repo_test.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/infra/base-images/base-builder/detect_repo_test.py b/infra/base-images/base-builder/detect_repo_test.py
index 4886522ac..96f4c9ec3 100644
--- a/infra/base-images/base-builder/detect_repo_test.py
+++ b/infra/base-images/base-builder/detect_repo_test.py
@@ -44,20 +44,19 @@ class DetectRepoIntegrationTest(unittest.TestCase):
with tempfile.TemporaryDirectory() as tmp_dir:
# Construct example repo's to check for commits.
- for example_repo in test_repos.TEST_REPOS:
- repo_manager.RepoManager(example_repo.git_url, tmp_dir)
- self.check_with_repo(example_repo.git_url,
- example_repo.git_repo_name,
+ for test_repo in test_repos.TEST_REPOS:
+ repo_manager.clone_repo_and_get_manager(test_repo.git_url, tmp_dir)
+ self.check_with_repo(test_repo.git_url,
+ test_repo.git_repo_name,
tmp_dir,
- commit=example_repo.old_commit)
+ commit=test_repo.old_commit)
def test_infer_main_repo_from_name(self):
"""Tests that the main project repo can be inferred from a repo name."""
-
with tempfile.TemporaryDirectory() as tmp_dir:
- for example_repo in test_repos.TEST_REPOS:
- repo_manager.RepoManager(example_repo.git_url, tmp_dir)
- self.check_with_repo(example_repo.git_url, example_repo.git_repo_name,
+ for test_repo in test_repos.TEST_REPOS:
+ repo_manager.clone_repo_and_get_manager(test_repo.git_url, tmp_dir)
+ self.check_with_repo(test_repo.git_url, test_repo.git_repo_name,
tmp_dir)
def check_with_repo(self, repo_origin, repo_name, tmp_dir, commit=None):