Skip to content

Commit f1f027b

Browse files
nit
Signed-off-by: David Korczynski <[email protected]>
1 parent 8e337ca commit f1f027b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

infra/helper_test.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def test_pull(self, mock_pull_images, _):
6868
def test_base_image(self, mock_docker_build):
6969
"""Tests that build_image_impl works as intended with a base-image."""
7070
image_name = 'base-image'
71-
self.assertTrue(common_utils.build_image_impl(common_utils.Project(image_name)))
71+
self.assertTrue(
72+
common_utils.build_image_impl(common_utils.Project(image_name)))
7273
build_dir = os.path.join(common_utils.OSS_FUZZ_DIR,
7374
'infra/base-images/base-image')
7475
mock_docker_build.assert_called_with([
@@ -81,8 +82,10 @@ def test_oss_fuzz_project(self, mock_docker_build):
8182
"""Tests that build_image_impl works as intended with an OSS-Fuzz
8283
project."""
8384
project_name = 'example'
84-
self.assertTrue(common_utils.build_image_impl(common_utils.Project(project_name)))
85-
build_dir = os.path.join(common_utils.OSS_FUZZ_DIR, 'projects', project_name)
85+
self.assertTrue(
86+
common_utils.build_image_impl(common_utils.Project(project_name)))
87+
build_dir = os.path.join(common_utils.OSS_FUZZ_DIR, 'projects',
88+
project_name)
8689
mock_docker_build.assert_called_with([
8790
'-t', 'gcr.io/oss-fuzz/example', '--file',
8891
os.path.join(build_dir, 'Dockerfile'), build_dir
@@ -96,9 +99,10 @@ def test_external_project(self, mock_docker_build):
9699
project_src_path = os.path.join(temp_dir, 'example')
97100
os.mkdir(project_src_path)
98101
build_integration_path = 'build-integration'
99-
project = common_utils.Project(project_src_path,
100-
is_external=True,
101-
build_integration_path=build_integration_path)
102+
project = common_utils.Project(
103+
project_src_path,
104+
is_external=True,
105+
build_integration_path=build_integration_path)
102106
self.assertTrue(common_utils.build_image_impl(project))
103107
mock_docker_build.assert_called_with([
104108
'-t', 'gcr.io/oss-fuzz/example', '--file',

0 commit comments

Comments
 (0)