aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2021-02-22 10:55:15 -0800
committerGravatar GitHub <noreply@github.com>2021-02-22 10:55:15 -0800
commit1b0115eefd70491376cf3cb6f88e49632c78ee18 (patch)
treeb35412eb2eefc3dd394da26f96215473f109fb51
parent90164f397e1a93dd0f0bd5f1a3685439cbcb213a (diff)
Fix spuriously failing test (#5218)
-rw-r--r--infra/build_specified_commit_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/infra/build_specified_commit_test.py b/infra/build_specified_commit_test.py
index 916b3188..a8650458 100644
--- a/infra/build_specified_commit_test.py
+++ b/infra/build_specified_commit_test.py
@@ -95,6 +95,10 @@ class BuildImageIntegrationTest(unittest.TestCase):
def test_detect_main_repo_from_name(self):
"""Test the detect main repo function from build specific commit module."""
for example_repo in test_repos.TEST_REPOS:
+ if example_repo.project_name == 'gonids':
+ # It's unclear how this test ever passed, but we can't infer the repo
+ # because gonids doesn't really check it out, it uses "go get".
+ continue
repo_origin, repo_name = build_specified_commit.detect_main_repo(
example_repo.project_name, repo_name=example_repo.git_repo_name)
self.assertEqual(repo_origin, example_repo.git_url)