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 f3f9428..e9d0731 100644 (file)
@@ -1,6 +1,12 @@
 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/
        * dg-extract-results.sh: Fix order of WARNING and following test
        result.
 
index ed62f73..5bf2f87 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]: