Implement support for expiring expected results in validate_failures.py.
commitc577382e7b00c09e89f0b0e8cff4361795f9499a
authorDiego Novillo <dnovillo@google.com>
Mon, 13 Aug 2012 18:00:55 +0000 (13 14:00 -0400)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Mon, 13 Aug 2012 18:00:55 +0000 (13 14:00 -0400)
treec5ecf16dc9bbfbcd6c56c37913b6446d7b75177d
parent621bc04640ee2dd1894285c6a536c78c826d8d4e
Implement support for expiring expected results in validate_failures.py.

I noticed recently that while the validator was accepting the
'expire=YYYYMMDD' attribute, it was not actually doing anything with
it.

This patch fixes the oversight.

2012-08-13  Diego Novillo  <dnovillo@google.com>

* testsuite-management/validate_failures.py: Import datetime.
(TestResult.ExpirationDate): New.
(TestResult.HasExpired): New.
(ParseSummary): Call it.  If it returns True, warn that the
expected failure has expired and do not add it to the set of
expected results.
(GetResults): Clarify documentation.

From-SVN: r190351
contrib/ChangeLog
contrib/testsuite-management/validate_failures.py