diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2016-09-20 20:15:30 +0000 |
---|---|---|
committer | Christophe Lyon <clyon@gcc.gnu.org> | 2016-09-20 22:15:30 +0200 |
commit | aa9baacfc94e6147c84d5e0fbbd32dd948e7c8cf (patch) | |
tree | 54a8fdc97498cbda100740b8dc6ef26a5105acb1 /contrib/dg-extract-results.py | |
parent | b0a5704b4cd613c9ce722e2a7de530ac6998cd8c (diff) | |
download | gcc-aa9baacfc94e6147c84d5e0fbbd32dd948e7c8cf.zip gcc-aa9baacfc94e6147c84d5e0fbbd32dd948e7c8cf.tar.gz gcc-aa9baacfc94e6147c84d5e0fbbd32dd948e7c8cf.tar.bz2 |
Report DejaGnu ERROR messages in dg-extract-results.
2016-09-20 Christophe Lyon <christophe.lyon@linaro.org>
* dg-extract-results.py: Report DejaGnu error in the final
summary.
* dg-extract-results.sh: Likewise.
From-SVN: r240289
Diffstat (limited to 'contrib/dg-extract-results.py')
-rw-r--r-- | contrib/dg-extract-results.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/contrib/dg-extract-results.py b/contrib/dg-extract-results.py index 7db5e64..4b02a5b 100644 --- a/contrib/dg-extract-results.py +++ b/contrib/dg-extract-results.py @@ -134,6 +134,7 @@ class Prog: self.end_line = None # Known summary types. self.count_names = [ + '# of DejaGnu errors\t\t', '# of expected passes\t\t', '# of unexpected failures\t', '# of unexpected successes\t', @@ -245,6 +246,10 @@ class Prog: segment = Segment (filename, file.tell()) variation.header = segment + # Parse the rest of the summary (the '# of ' lines). + if len (variation.counts) == 0: + variation.counts = self.zero_counts() + # Parse up until the first line of the summary. if num_variations == 1: end = '\t\t=== ' + tool.name + ' Summary ===\n' @@ -291,6 +296,11 @@ class Prog: harness.results.append ((key, line)) if not first_key and sort_logs: first_key = key + if line.startswith ('ERROR: (DejaGnu)'): + for i in range (len (self.count_names)): + if 'DejaGnu errors' in self.count_names[i]: + variation.counts[i] += 1 + break # 'Using ...' lines are only interesting in a header. Splitting # the test up into parallel runs leads to more 'Using ...' lines @@ -309,9 +319,6 @@ class Prog: segment.lines -= final_using harness.add_segment (first_key, segment) - # Parse the rest of the summary (the '# of ' lines). - if len (variation.counts) == 0: - variation.counts = self.zero_counts() while True: before = file.tell() line = file.readline() |