From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 2B53A3865483 for ; Thu, 17 Jun 2021 17:36:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2B53A3865483 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-16-6vKssDVaPtyBXrijzGtmHQ-1; Thu, 17 Jun 2021 13:36:00 -0400 X-MC-Unique: 6vKssDVaPtyBXrijzGtmHQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 31B928015C6 for ; Thu, 17 Jun 2021 17:36:00 +0000 (UTC) Received: from fedora.redhat.com (ovpn-112-3.rdu2.redhat.com [10.10.112.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id C48B85D6DC; Thu, 17 Jun 2021 17:35:59 +0000 (UTC) From: Carley Gilmore To: bunsen@sourceware.org Cc: Carley Gilmore Subject: [PATCH] Fix in model.py Testrun class for self instance of summary Date: Thu, 17 Jun 2021 13:34:29 -0400 Message-Id: <20210617173428.950882-1-cgilmore@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: bunsen@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bunsen mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2021 17:36:04 -0000 --- bunsen/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bunsen/model.py b/bunsen/model.py index 0fa09f4..7299811 100644 --- a/bunsen/model.py +++ b/bunsen/model.py @@ -1178,7 +1178,7 @@ class Testrun(dict): if field not in self.field_types: pass elif self.field_types[field] == 'testcases' \ - and summary: + and self.summary: continue # omit testcases when reading only summary elif self.field_types[field] == 'testcases': defer_fields.append(field) @@ -1189,7 +1189,7 @@ class Testrun(dict): .format(self.field_types[field], field)) else: pass # no special processing needed - if summary and field == 'testcases': + if self.summary and field == 'testcases': continue # omit testcases when reading only summary if field in self._cursor_commit_ids: self._cursor_commit_ids[field] = value -- 2.31.1