diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-01 23:41:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-02 16:00:47 +0100 |
commit | 368aaf60ff96955e59d6e7cbb560045c662f4868 (patch) | |
tree | 136a6653e1cab57039d43cff55adbad0c0d015a5 /meta/lib | |
parent | ca71b89c6c5cbdc2e8d1eb5723ea8ff750cb1a6a (diff) | |
download | poky-368aaf60ff96955e59d6e7cbb560045c662f4868.tar.gz |
selftest/prservice: Improve test failure message
When failing, give more information about why exactly a failure is
happening such as the PR values in question.
(From OE-Core rev: bdd3abcc210e8f58b7b411da6bbd9c5314819908)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/prservice.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/prservice.py b/meta/lib/oeqa/selftest/cases/prservice.py index fe1f24ea6d..85b534963d 100644 --- a/meta/lib/oeqa/selftest/cases/prservice.py +++ b/meta/lib/oeqa/selftest/cases/prservice.py | |||
@@ -63,7 +63,7 @@ class BitbakePrTests(OESelftestTestCase): | |||
63 | pr_2 = self.get_pr_version(package_name) | 63 | pr_2 = self.get_pr_version(package_name) |
64 | stamp_2 = self.get_task_stamp(package_name, track_task) | 64 | stamp_2 = self.get_task_stamp(package_name, track_task) |
65 | 65 | ||
66 | self.assertTrue(pr_2 - pr_1 == 1, "Step between same pkg. revision is greater than 1") | 66 | self.assertTrue(pr_2 - pr_1 == 1, "Step between pkg revisions is not 1 (was %s - %s)" % (pr_2, pr_1)) |
67 | self.assertTrue(stamp_1 != stamp_2, "Different pkg rev. but same stamp: %s" % stamp_1) | 67 | self.assertTrue(stamp_1 != stamp_2, "Different pkg rev. but same stamp: %s" % stamp_1) |
68 | 68 | ||
69 | def run_test_pr_export_import(self, package_name, replace_current_db=True): | 69 | def run_test_pr_export_import(self, package_name, replace_current_db=True): |
@@ -89,7 +89,7 @@ class BitbakePrTests(OESelftestTestCase): | |||
89 | self.increment_package_pr(package_name) | 89 | self.increment_package_pr(package_name) |
90 | pr_2 = self.get_pr_version(package_name) | 90 | pr_2 = self.get_pr_version(package_name) |
91 | 91 | ||
92 | self.assertTrue(pr_2 - pr_1 == 1, "Step between same pkg. revision is greater than 1") | 92 | self.assertTrue(pr_2 - pr_1 == 1, "Step between pkg revisions is not 1 (was %s - %s)" % (pr_2, pr_1)) |
93 | 93 | ||
94 | def test_import_export_replace_db(self): | 94 | def test_import_export_replace_db(self): |
95 | self.run_test_pr_export_import('m4') | 95 | self.run_test_pr_export_import('m4') |