Do not tag built components if there is any failed one.

This commit is contained in:
Jan Kaluza
2017-05-03 09:21:55 +02:00
parent f441077706
commit 7d7a45f997
2 changed files with 23 additions and 4 deletions

View File

@@ -558,6 +558,12 @@ class TestBuild(unittest.TestCase):
TestModuleBuilder.on_build_cb = on_build_cb
# Check that no components are tagged when single component fails
# in batch.
def on_tag_artifacts_cb(cls, artifacts):
raise ValueError("No component should be tagged.")
TestModuleBuilder.on_tag_artifacts_cb = on_tag_artifacts_cb
msgs = []
stop = module_build_service.scheduler.make_simple_stop_condition(db.session)
module_build_service.scheduler.main(msgs, stop)