change error on missing branch to warning

We have some deliverables with new (or at least unbranched) repositories
for ocata. This is likely to be the case in the future, too, so make the
error a warning for now until we can improve the logic.

Change-Id: Id2d6dc96501ecfb65945b406f17bd4dcfdaea1c2
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann
2017-02-15 22:27:19 -05:00
parent 3f8573bf1b
commit 581ec64658
2 changed files with 3 additions and 3 deletions

View File

@@ -115,7 +115,7 @@ def validate_series_open(deliverable_info,
if branch['name'] == expected_branch:
# Everything is OK
return
mk_error(
mk_warning(
'There is no {} branch defined in {}. Is the {} series open?'.format(
expected_branch, previous_deliverable_file, series_name))

View File

@@ -1476,5 +1476,5 @@ class TestValidateSeriesOpen(base.BaseTestCase):
errors.append,
)
print(warnings, errors)
self.assertEqual(0, len(warnings))
self.assertEqual(1, len(errors))
self.assertEqual(1, len(warnings))
self.assertEqual(0, len(errors))