From patchwork Thu Nov 7 01:12:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Dmytriyenko X-Patchwork-Id: 178781 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp420082ilf; Wed, 6 Nov 2019 19:22:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyvClrJbEdMqeMq3fSqkVqxER3YcU3mUtdi5yy40S0zA/PIE5HCDGCSuJbb7tiaEvRuK31k X-Received: by 2002:a17:90a:7608:: with SMTP id s8mr1908302pjk.75.1573096935748; Wed, 06 Nov 2019 19:22:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573096935; cv=none; d=google.com; s=arc-20160816; b=B+oK3aKgDNlmWpOOGHVg0UXcl5SLtSLDUBsatS/Li1DEtJvidPOPAFaCmwAN1Nd+0H iiG5sraFLFo73Xqs/AJNOW25uFA3rvXyyrs7WMQhIQZyJzIgPJlIiB7mQag8GdzT7Rbc oofYlj6VijmLp1QHD9BTuYZgzW67WZxKw66RotOIvl8cRztY389SbHl2SVuIveA+lHFe IXTBCLS9P9wP+22Crec05R/Ui46sdqHE3ymYG5ZSMa6ukO4M6Z/AcVSuCZiKB/LtkGpv 98elOyGqj0VNP80tVWXzK8MMwT8dlz9T5fgX1FoeVQ0IBzPMoGrGmqXdg1kYcnwuLyZr ywPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from:delivered-to; bh=ou9DDwP5Jq7WW5KxvC7KK64aqOiafliEkaUSIC4yAkE=; b=RurrBOI+fBPt1OCDixmXKlqm2+1imXR8F3uCRSIQsAiiveXcSX4gqd5bN9SNYjtzja +hoao8PEek+QpgUwwgGoH3Qoye9jitxXBzkalDyUKxElT8RZIcbIGwIv9blcw0YkF/Cy 2Nx/pD2vhm1NB6+vkFmm0S5AXP3zAuO0KNJgDLjaCqZ0LySvkZpJyhuT8dxoVdpEps4t 3sWZBRYZypRVbbydiQTIp3Hmk89cgdjC8GLim2OLr6uIKSbR1KMyyfy6DAq52TkiPxgp ZoftJ7ErMOi4ywAP+YnC8xauRDhj1lExJ33sZGYPWeHtHS99cPPo1n1PYIoQt+39BXGx OuXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id c13si803322pjq.60.2019.11.06.19.22.15; Wed, 06 Nov 2019 19:22:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 6E0307F93B; Thu, 7 Nov 2019 03:21:55 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mailout4.zoneedit.com (mailout4.zoneedit.com [64.68.198.64]) by mail.openembedded.org (Postfix) with ESMTP id A54F27F793 for ; Thu, 7 Nov 2019 01:12:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailout4.zoneedit.com (Postfix) with ESMTP id A373440BEF; Thu, 7 Nov 2019 01:12:47 +0000 (UTC) Received: from mailout4.zoneedit.com ([127.0.0.1]) by localhost (zmo14-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r-laS4FjUGZD; Thu, 7 Nov 2019 01:12:47 +0000 (UTC) Received: from mail.denix.org (pool-100-15-86-127.washdc.fios.verizon.net [100.15.86.127]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout4.zoneedit.com (Postfix) with ESMTPSA id 8787740B37; Thu, 7 Nov 2019 01:12:46 +0000 (UTC) Received: from gimli.denix (unknown [192.168.30.6]) by mail.denix.org (Postfix) with ESMTP id A2BA6170390; Wed, 6 Nov 2019 20:12:45 -0500 (EST) From: Denys Dmytriyenko To: openembedded-core@lists.openembedded.org Date: Wed, 6 Nov 2019 20:12:43 -0500 Message-Id: <1573089163-24874-1-git-send-email-denis@denix.org> X-Mailer: git-send-email 2.7.4 Cc: Denys Dmytriyenko Subject: [OE-core] [PATCH] buildhistory: fix "version went backwards" QA error message X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Denys Dmytriyenko Fix parentheses placement in the message from: Package version for package X went backwards which would break package feeds from (Y to Z) to this one: Package version for package X went backwards which would break package feeds (from Y to Z) Signed-off-by: Denys Dmytriyenko --- meta/classes/buildhistory.bbclass | 2 +- meta/lib/oeqa/selftest/cases/buildoptions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index f986f7c..affdf27 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -280,7 +280,7 @@ python buildhistory_emit_pkghistory() { last_pkgr = lastversion.pkgr r = bb.utils.vercmp((pkge, pkgv, pkgr), (last_pkge, last_pkgv, last_pkgr)) if r < 0: - msg = "Package version for package %s went backwards which would break package feeds from (%s:%s-%s to %s:%s-%s)" % (pkg, last_pkge, last_pkgv, last_pkgr, pkge, pkgv, pkgr) + msg = "Package version for package %s went backwards which would break package feeds (from %s:%s-%s to %s:%s-%s)" % (pkg, last_pkge, last_pkgv, last_pkgr, pkge, pkgv, pkgr) package_qa_handle_error("version-going-backwards", msg, d) pkginfo = PackageInfo(pkg) diff --git a/meta/lib/oeqa/selftest/cases/buildoptions.py b/meta/lib/oeqa/selftest/cases/buildoptions.py index 6a5378d..c07b050 100644 --- a/meta/lib/oeqa/selftest/cases/buildoptions.py +++ b/meta/lib/oeqa/selftest/cases/buildoptions.py @@ -143,7 +143,7 @@ class BuildhistoryTests(BuildhistoryBase): def test_buildhistory_buildtime_pr_backwards(self): target = 'xcursor-transparent-theme' - error = "ERROR:.*QA Issue: Package version for package %s went backwards which would break package feeds from (.*-r1.* to .*-r0.*)" % target + error = "ERROR:.*QA Issue: Package version for package %s went backwards which would break package feeds (from .*-r1.* to .*-r0.*)" % target self.run_buildhistory_operation(target, target_config="PR = \"r1\"", change_bh_location=True) self.run_buildhistory_operation(target, target_config="PR = \"r0\"", change_bh_location=False, expect_error=True, error_regex=error)