aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2019-03-05 16:29:19 +0000
committerChristophe Lyon <clyon@gcc.gnu.org>2019-03-05 17:29:19 +0100
commit0a7b752172f1e2d7868767e8efecefaf8fb957f3 (patch)
tree29013f9220db880adff05f984e2bb5c01a2d7a71
parente8d18fd8f6077c2022282b0a1b09ea5c5c3d62d4 (diff)
downloadgcc-0a7b752172f1e2d7868767e8efecefaf8fb957f3.zip
gcc-0a7b752172f1e2d7868767e8efecefaf8fb957f3.tar.gz
gcc-0a7b752172f1e2d7868767e8efecefaf8fb957f3.tar.bz2
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
-rw-r--r--contrib/ChangeLog6
-rw-r--r--contrib/dg-extract-results.py4
2 files changed, 8 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index f3f9428..e9d0731 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -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.
diff --git a/contrib/dg-extract-results.py b/contrib/dg-extract-results.py
index ed62f73..5bf2f87 100644
--- a/contrib/dg-extract-results.py
+++ b/contrib/dg-extract-results.py
@@ -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]: