changeset 060fc1591151 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=060fc1591151
description:
tests: add 'CHANGED' output to pickle viewer
Change-Id: I64c69fde8657c273adea69122877c5348a4f867a
Reviewed-by: Andreas Sandberg <[email protected]>
diffstat:
tests/testing/results.py | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 3c383d9a7c31 -r 060fc1591151 tests/testing/results.py
--- a/tests/testing/results.py Thu Jun 02 10:48:45 2016 +0100
+++ b/tests/testing/results.py Thu Jun 02 10:50:52 2016 +0100
@@ -115,6 +115,9 @@
def skipped(self):
return all([ r.skipped() for r in self.results])
+ def changed(self):
+ return self.results[0].success() and self.failed()
+
def failed(self):
return any([ not r for r in self.results])
@@ -178,11 +181,20 @@
def __init__(self, **kwargs):
super(TextSummary, self).__init__(**kwargs)
+ def test_status(self, suite):
+ if suite.skipped():
+ return "SKIPPED"
+ elif suite.changed():
+ return "CHANGED"
+ elif suite:
+ return "OK"
+ else:
+ return "FAILED"
+
def dump_suites(self, suites):
fout = self.fout
for suite in suites:
- status = "SKIPPED" if suite.skipped() else \
- ("OK" if suite else "FAILED")
+ status = self.test_status(suite)
print >> fout, "%s: %s" % (suite.name, status)
class JUnit(ResultFormatter):
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev