aboutsummaryrefslogtreecommitdiff
path: root/dejagnu
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2013-10-02 15:54:18 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-10-03 22:58:19 +0000
commitae02af5938d3fe75180dea5a6e8fa7a075b302d7 (patch)
tree8225887bb5648dd9d5817945bbaed57e66c0e070 /dejagnu
parentc35909e0e48898e81a70796d03ba0d2802bc209e (diff)
downloadtoolchain-utils-ae02af5938d3fe75180dea5a6e8fa7a075b302d7.tar.gz
gdb_dejagnu: print failed tests out.
This prints failed test name out. Also, it ignores the tests that only appears in the baseline. BUG=None TEST=the name of failed tests were printed. Change-Id: Ie0c3f3d3a092a184a2e941020af62d4e2de40da2 Reviewed-on: https://chrome-internal-review.googlesource.com/145848 Reviewed-by: Simon Que <sque@google.com> Reviewed-by: Han Shen <shenhan@google.com> Commit-Queue: Yunlian Jiang <yunlian@google.com> Tested-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'dejagnu')
-rwxr-xr-xdejagnu/gdb_dejagnu.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/dejagnu/gdb_dejagnu.py b/dejagnu/gdb_dejagnu.py
index cb50d573..a7897dcf 100755
--- a/dejagnu/gdb_dejagnu.py
+++ b/dejagnu/gdb_dejagnu.py
@@ -277,13 +277,15 @@ class DejagnuExecuter(object):
def ResultValidate(self):
self.PrepareResult()
- result = 0
+ result = []
for key, value in self.base_result.items():
if 'PASS' not in value:
continue
+ if key not in self.test_result:
+ continue
test_result = self.test_result[key]
if 'PASS' not in test_result:
- result = 1
+ result.append(key)
return result
def PrepareResult(self):