aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2019-07-18 15:54:36 +0200
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2019-07-21 17:39:06 +0000
commit3a4b223d6a103c635ec5838060b077fe9638672a (patch)
tree92cf85c353a04652de9b5f611c6d8633f148e4d6 /tests
parentc73815347e2e6a456c29dc1f6d93d7ed5c8f7c59 (diff)
downloadkolla-3a4b223d6a103c635ec5838060b077fe9638672a.tar.gz
kolla-3a4b223d6a103c635ec5838060b077fe9638672a.zip
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
Diffstat (limited to 'tests')
-rw-r--r--tests/test_build.py4
1 files changed, 2 insertions, 2 deletions
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)