Rename test images module and function

This commit is contained in:
Mikhail Gordeev 2019-11-01 15:30:53 +03:00
parent 25bd46e665
commit bb2e2fbc62
4 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ import sys
import yaml
from cloud_build.test_images import test_image
import cloud_build.image_tests
PROG = 'cloud-build'
@ -492,7 +492,7 @@ Dir::Etc::preferencesparts "/var/empty";
self.copy_image(tarball, image_path)
for test in self.tests_by_image(image):
self.info(f'Test {image} {branch} {arch}')
if not test_image(
if not cloud_build.image_tests.test(
image=image_path,
branch=branch,
arch=arch,

View File

@ -20,7 +20,7 @@ def pushtmpd():
shutil.rmtree(tmpdir)
def test_image(method, image, branch, arch):
def test(method, image, branch, arch):
if arch not in ['x86_64', 'i586']:
return True