From nobody Tue Feb 10 08:27:35 2026 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 206.53.239.180 is neither permitted nor denied by domain of freelists.org) client-ip=206.53.239.180; envelope-from=patchew-devel-bounce@freelists.org; helo=turing.freelists.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=none (zoho.com: 206.53.239.180 is neither permitted nor denied by domain of freelists.org) smtp.mailfrom=patchew-devel-bounce@freelists.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from turing.freelists.org (turing.freelists.org [206.53.239.180]) by mx.zohomail.com with SMTPS id 152041239267742.72278573547419; Wed, 7 Mar 2018 00:46:32 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 0155826512; Wed, 7 Mar 2018 03:46:32 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2_KjOYblqRN5; Wed, 7 Mar 2018 03:46:31 -0500 (EST) Received: from turing.freelists.org (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 9FD86260D3; Wed, 7 Mar 2018 03:46:31 -0500 (EST) Received: with ECARTIS (v1.0.0; list patchew-devel); Wed, 07 Mar 2018 03:46:31 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7547526512 for ; Wed, 7 Mar 2018 03:46:31 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0nUhdRGWwrTD for ; Wed, 7 Mar 2018 03:46:31 -0500 (EST) Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 59189260D3 for ; Wed, 7 Mar 2018 03:46:31 -0500 (EST) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 053D140363BE for ; Wed, 7 Mar 2018 08:46:31 +0000 (UTC) Received: from lemon.usersys.redhat.com (ovpn-12-131.pek2.redhat.com [10.72.12.131]) by smtp.corp.redhat.com (Postfix) with ESMTP id D71AB1C716; Wed, 7 Mar 2018 08:46:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org; s=turing; t=1520412392; bh=qVVIlNcgvcAxWYPLQKmf5J2tRKd/kO9F8KqYDl5QiZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To:List-help: List-unsubscribe:List-Id:List-subscribe:List-owner:List-post: List-archive; b=r4mDtUOe7/6QhIPvJbG0AZEyaTlacRKFJeymWAzvvYyuqw+Do/DcVn15rdZcwir0A VTCatAmQNFuLO/wg0MGNHGEJ/2gz6Cm4AGg103h2Aqq4MDQL485C95jRAGcJPABZ5T 2Y4EeUXPj3uQ91OblKJ5sNzBzyeinc5LuH14kBW8= X-Virus-Scanned: Debian amavisd-new at turing.freelists.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org; s=turing; t=1520412391; bh=qVVIlNcgvcAxWYPLQKmf5J2tRKd/kO9F8KqYDl5QiZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To:List-help: List-unsubscribe:List-Id:List-subscribe:List-owner:List-post: List-archive; b=n+hMXJqARwSq2quVabdkMNPVwdV8FhVtcwvnAr+WpGROmbFRf6aXLIfObZnOzcPU0 JKETJMlZAxZjNyFQ26Ka+pEb4v44n5jZpsNJooRYQF6ns03jO1wbGq5fUyDtaVux5C kv5THOxQXcTU2qQxQ55heRm64rJNpOF7Neh0EIaw= X-Original-To: patchew-devel@freelists.org X-Virus-Scanned: Debian amavisd-new at turing.freelists.org From: Fam Zheng To: patchew-devel@freelists.org Cc: pbonzini@redhat.com Subject: [patchew-devel] [PATCH 5/7] testing: Use testing.ready property for project HEAD test Date: Wed, 7 Mar 2018 16:46:07 +0800 Message-Id: <20180307084609.8515-6-famz@redhat.com> In-Reply-To: <20180307084609.8515-1-famz@redhat.com> References: <20180307084609.8515-1-famz@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 07 Mar 2018 08:46:31 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 07 Mar 2018 08:46:31 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'famz@redhat.com' RCPT:'' X-archive-position: 89 X-ecartis-version: Ecartis v1.0.0 Sender: patchew-devel-bounce@freelists.org Errors-to: patchew-devel-bounce@freelists.org X-original-sender: famz@redhat.com Precedence: normal Reply-To: patchew-devel@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: patchew-devel X-List-ID: patchew-devel List-subscribe: List-owner: List-post: List-archive: X-list: patchew-devel X-ZohoMail-DKIM: pass (identity @freelists.org) (identity @freelists.org) X-ZohoMail-Owner: <20180307084609.8515-6-famz@redhat.com>+zmo_0_patchew-devel-bounce@freelists.org X-ZohoMail: RDKM_0 RSF_4 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The previous conditions were broken: tests don't run after git head moves. Adpot the "testing.ready" approach here too to fix it. Signed-off-by: Fam Zheng --- mods/testing.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mods/testing.py b/mods/testing.py index 80a22a5..ff07918 100644 --- a/mods/testing.py +++ b/mods/testing.py @@ -122,6 +122,10 @@ class TestingModule(PatchewModule): and obj.get_property("git.tag") and obj.get_property("git.repo= "): self.remove_testing_properties(obj) obj.set_property("testing.ready", 1) + elif isinstance(obj, Project) and name =3D=3D "git.head" \ + and old_value !=3D value: + self.remove_testing_properties(obj) + obj.set_property("testing.ready", 1) =20 def remove_testing_properties(self, obj, test=3D""): for k in list(obj.get_properties().keys()): @@ -428,6 +432,8 @@ class TestingGetView(APILoginRequiredView): obj.set_property("testing.done", True) =20 def _find_project_test(self, request, po, tester, capabilities): + if not po.get_property("testing.ready"): + return head =3D po.get_property("git.head") repo =3D po.git tested =3D po.get_property("testing.tested-head") --=20 2.14.3