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
This commit is contained in:
Christophe Lyon
2019-03-05 16:29:19 +00:00
committed by Christophe Lyon
parent e8d18fd8f6
commit 0a7b752172
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -1,3 +1,9 @@
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.
2019-03-05 Christophe Lyon <christophe.lyon@linaro.org>
contrib/
+2 -2
View File
@@ -307,8 +307,8 @@ class Prog:
has_warning = 0
key = (name, len (harness.results))
harness.results.append ((key, line))
if not first_key and sort_logs:
first_key = key
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]: