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]: