Commit 0a7b7521 by Christophe Lyon Committed by Christophe Lyon

dg-extract-results.py: Handle case where a WARNING happens with the first test of a harness.

2019-03-05  Christophe Lyon  <christophe.lyon@linaro.org>

	contrib/
	* dg-extract-results.py: Handle case where a WARNING happens with
	the first test of a harness.

From-SVN: r269394
parent e8d18fd8
2019-03-05 Christophe Lyon <christophe.lyon@linaro.org> 2019-03-05 Christophe Lyon <christophe.lyon@linaro.org>
contrib/ contrib/
* dg-extract-results.py: Handle case where a WARNING happens with
the first test of a harness.
2019-03-05 Christophe Lyon <christophe.lyon@linaro.org>
contrib/
* dg-extract-results.sh: Fix order of WARNING and following test * dg-extract-results.sh: Fix order of WARNING and following test
result. result.
......
...@@ -307,8 +307,8 @@ class Prog: ...@@ -307,8 +307,8 @@ class Prog:
has_warning = 0 has_warning = 0
key = (name, len (harness.results)) key = (name, len (harness.results))
harness.results.append ((key, line)) harness.results.append ((key, line))
if not first_key and sort_logs: if not first_key and sort_logs:
first_key = key first_key = key
if line.startswith ('ERROR: (DejaGnu)'): if line.startswith ('ERROR: (DejaGnu)'):
for i in range (len (self.count_names)): for i in range (len (self.count_names)):
if 'DejaGnu errors' in self.count_names[i]: if 'DejaGnu errors' in self.count_names[i]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment