summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCurtis Dunham <Curtis.Dunham@arm.com>2016-06-02 10:50:52 +0100
committerCurtis Dunham <Curtis.Dunham@arm.com>2016-06-02 10:50:52 +0100
commit53ae19bb5dce904915385515d87ff3c9a69ee170 (patch)
tree3020651be6b7c40e9431c75175ec19bc1f4cdbc3 /tests
parent10880031354bb886cdc313fbfecb2154ae469eac (diff)
downloadgem5-53ae19bb5dce904915385515d87ff3c9a69ee170.tar.xz
tests: add 'CHANGED' output to pickle viewer
Change-Id: I64c69fde8657c273adea69122877c5348a4f867a Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/testing/results.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/testing/results.py b/tests/testing/results.py
index 0c46c9665..9432a0f10 100644
--- a/tests/testing/results.py
+++ b/tests/testing/results.py
@@ -115,6 +115,9 @@ class TestResult(object):
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 @@ class TextSummary(ResultFormatter):
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):