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:
@@ -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))
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user