correct date comparison in check_review_status.py
The earliest allowed merge date was being reported differently from the way the date comparison was performed with the effect that the tool reported it was OK to merge a change before it should have. Switch to <= to ensure that the two dates match. Change-Id: Iab2c783aae4fd769d02e60a6884f1128d3471270 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
92c03a9fee
commit
5194642047
|
@ -304,7 +304,7 @@ def get_one_status(change, delegates):
|
|||
|
||||
if votes[-1]:
|
||||
can_approve = 'dissenting votes'
|
||||
elif age < datetime.timedelta(7):
|
||||
elif age <= datetime.timedelta(7):
|
||||
can_approve = 'too soon'
|
||||
else:
|
||||
can_approve = 'YES'
|
||||
|
@ -317,7 +317,7 @@ def get_one_status(change, delegates):
|
|||
|
||||
if votes[-1]:
|
||||
can_approve = 'dissenting votes'
|
||||
elif age < datetime.timedelta(7):
|
||||
elif age <= datetime.timedelta(7):
|
||||
can_approve = 'too soon'
|
||||
else:
|
||||
can_approve = 'YES'
|
||||
|
|
Loading…
Reference in New Issue