Rename test images module and function
This commit is contained in:
parent
25bd46e665
commit
bb2e2fbc62
@ -16,7 +16,7 @@ import sys
|
|||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
from cloud_build.test_images import test_image
|
import cloud_build.image_tests
|
||||||
|
|
||||||
PROG = 'cloud-build'
|
PROG = 'cloud-build'
|
||||||
|
|
||||||
@ -492,7 +492,7 @@ Dir::Etc::preferencesparts "/var/empty";
|
|||||||
self.copy_image(tarball, image_path)
|
self.copy_image(tarball, image_path)
|
||||||
for test in self.tests_by_image(image):
|
for test in self.tests_by_image(image):
|
||||||
self.info(f'Test {image} {branch} {arch}')
|
self.info(f'Test {image} {branch} {arch}')
|
||||||
if not test_image(
|
if not cloud_build.image_tests.test(
|
||||||
image=image_path,
|
image=image_path,
|
||||||
branch=branch,
|
branch=branch,
|
||||||
arch=arch,
|
arch=arch,
|
||||||
|
@ -20,7 +20,7 @@ def pushtmpd():
|
|||||||
shutil.rmtree(tmpdir)
|
shutil.rmtree(tmpdir)
|
||||||
|
|
||||||
|
|
||||||
def test_image(method, image, branch, arch):
|
def test(method, image, branch, arch):
|
||||||
if arch not in ['x86_64', 'i586']:
|
if arch not in ['x86_64', 'i586']:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user