mirror of https://github.com/google/oss-fuzz.git
Support concurrent trial builds. (#8113)
Do this by appending the branch to the test image suffix.
This commit is contained in:
parent
7e8cab3d29
commit
c3495be8f4
|
@ -292,11 +292,16 @@ def trial_build_main(args=None, local_base_build=True):
|
||||||
"""Main function for trial_build. Pushes test images and then does test
|
"""Main function for trial_build. Pushes test images and then does test
|
||||||
builds."""
|
builds."""
|
||||||
args = get_args(args)
|
args = get_args(args)
|
||||||
|
if args.branch:
|
||||||
|
test_image_suffix = f'{TEST_IMAGE_SUFFIX}-{args.branch.lower()}'
|
||||||
|
else:
|
||||||
|
test_image_suffix = TEST_IMAGE_SUFFIX
|
||||||
|
|
||||||
if local_base_build:
|
if local_base_build:
|
||||||
build_and_push_test_images.build_and_push_images( # pylint: disable=unexpected-keyword-arg
|
build_and_push_test_images.build_and_push_images( # pylint: disable=unexpected-keyword-arg
|
||||||
TEST_IMAGE_SUFFIX)
|
test_image_suffix)
|
||||||
else:
|
else:
|
||||||
build_and_push_test_images.gcb_build_and_push_images(TEST_IMAGE_SUFFIX)
|
build_and_push_test_images.gcb_build_and_push_images(test_image_suffix)
|
||||||
return _do_test_builds(args)
|
return _do_test_builds(args)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue