dg-extract-results.py: Handle case where a WARNING happens with the first test of...
authorChristophe Lyon <christophe.lyon@linaro.org>
Tue, 5 Mar 2019 16:29:19 +0000 (16:29 +0000)
committerChristophe Lyon <clyon@gcc.gnu.org>
Tue, 5 Mar 2019 16:29:19 +0000 (17:29 +0100)
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

contrib/ChangeLog
contrib/dg-extract-results.py

index f3f9428bc933910b972fd4da979685ff6fa83ee6..e9d0731c27ca54ed84c188ba1a73d3c55aa4aed2 100644 (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/
index ed62f73226f93a35a069edee7a4e9bc937bad8e7..5bf2f87c24128185c81d1fce7ff579369c90e378 100644 (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]: