aboutsummaryrefslogtreecommitdiff
path: root/infra/build_specified_commit_test.py
diff options
context:
space:
mode:
authorOliver Chang <oliverchang@users.noreply.github.com>2020-04-14 11:38:23 +1000
committerGitHub <noreply@github.com>2020-04-14 11:38:23 +1000
commitaa045b9b37523ee79ee0f4971498625a8b9d0c4b (patch)
treed287f9c79d36d3e778786b3e716ac005dd4fda14 /infra/build_specified_commit_test.py
parent20f5e0571947d83d7f47ddef43a04706253b45c9 (diff)
downloadoss-fuzz-aa045b9b37523ee79ee0f4971498625a8b9d0c4b.tar.gz
Bisector fixes. (#3601)
- Copy /src from host instead of checking out repo on host. This fixes issues with dependencies in the main repo. - Add some more logging.
Diffstat (limited to 'infra/build_specified_commit_test.py')
-rw-r--r--infra/build_specified_commit_test.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/infra/build_specified_commit_test.py b/infra/build_specified_commit_test.py
index 9fdaae476..6f666856a 100644
--- a/infra/build_specified_commit_test.py
+++ b/infra/build_specified_commit_test.py
@@ -44,8 +44,12 @@ class BuildImageIntegrationTests(unittest.TestCase):
with tempfile.TemporaryDirectory() as tmp_dir:
test_case = test_repos.TEST_REPOS[0]
+ self.assertTrue(helper.build_image_impl(test_case.project_name))
+ host_src_dir = build_specified_commit.copy_src_from_docker(
+ test_case.project_name, tmp_dir)
+
test_repo_manager = repo_manager.RepoManager(
- test_case.git_url, tmp_dir, repo_name=test_case.oss_repo_name)
+ test_case.git_url, host_src_dir, repo_name=test_case.oss_repo_name)
build_data = build_specified_commit.BuildData(
sanitizer='address',
architecture='x86_64',
@@ -54,13 +58,13 @@ class BuildImageIntegrationTests(unittest.TestCase):
build_specified_commit.build_fuzzers_from_commit(test_case.old_commit,
test_repo_manager,
- build_data)
+ host_src_dir, build_data)
old_error_code = helper.reproduce_impl(test_case.project_name,
test_case.fuzz_target, False, [],
[], test_case.test_case_path)
build_specified_commit.build_fuzzers_from_commit(test_case.new_commit,
test_repo_manager,
- build_data)
+ host_src_dir, build_data)
new_error_code = helper.reproduce_impl(test_case.project_name,
test_case.fuzz_target, False, [],
[], test_case.test_case_path)