Skip to contentSkip to conversation

buildhistory: fix "version went backwards" QA error message

PATCH Superseded Denys Dmytriyenko 2 participants 2 messages Nov 7, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildhistory: fix "version went backwards" QA error message

From: Denys Dmytriyenko <[email protected]>

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)

---
 meta/classes/buildhistory.bbclass            | 2 +-
 meta/lib/oeqa/selftest/cases/buildoptions.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/classes/buildhistory.bbclass +1 -1
index f986f7c..affdf27 100644
@@ -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)
meta/lib/oeqa/selftest/cases/buildoptions.py +1 -1
index 6a5378d..c07b050 100644
@@ -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)
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 8 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

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)

I did really appreciate that you fixed the test in the commit, however the autobuilder disagrees:

https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/470

:/.

Cheers,

Richard