From 0a7b752172f1e2d7868767e8efecefaf8fb957f3 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Tue, 5 Mar 2019 16:29:19 +0000 Subject: [PATCH] dg-extract-results.py: Handle case where a WARNING happens with the first test of a harness. 2019-03-05 Christophe Lyon contrib/ * dg-extract-results.py: Handle case where a WARNING happens with the first test of a harness. From-SVN: r269394 --- contrib/ChangeLog | 6 ++++++ contrib/dg-extract-results.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/contrib/ChangeLog b/contrib/ChangeLog index f3f9428bc93..e9d0731c27c 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,9 @@ +2019-03-05 Christophe Lyon + + contrib/ + * dg-extract-results.py: Handle case where a WARNING happens with + the first test of a harness. + 2019-03-05 Christophe Lyon contrib/ diff --git a/contrib/dg-extract-results.py b/contrib/dg-extract-results.py index ed62f73226f..5bf2f87c241 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]: -- 2.30.2