From 3a4b223d6a103c635ec5838060b077fe9638672a Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Thu, 18 Jul 2019 15:54:36 +0200 Subject: Change how build process treats unbuildable images We have a list of images which are unbuildable for distro/buildtype/arch combos. This patch renames it from SKIPPED_IMAGES to UNBUILDABLE_IMAGES because 'skipped' images is something else in our code. Now all unbuildable images are marked as such and so are their children. At the end of build there is information provided about skipped images (due to --skip-parents or --skip-existing options) and then information about not buildable images. Both list should only contain entries related to requested build. Change-Id: If9b521339f564e483cba03d52e7c4eba271821a5 --- tests/test_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_build.py b/tests/test_build.py index d32188b55..d95208968 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -48,11 +48,11 @@ class BuildTest(object): with patch.object(sys, 'argv', self.build_args): LOG.info("Running with args %s", self.build_args) (bad_results, good_results, unmatched_results, - skipped_results) = build.run_build() + skipped_results, unbuildable_results) = build.run_build() failures = 0 for image, result in bad_results.items(): - if result is not 'error': + if result != 'error': continue failures = failures + 1 LOG.critical(">>> Expected image '%s' to succeed!", image) -- cgit v1.2.3