summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-01 13:25:39 +0100
committerAnuj Mittal <anuj.mittal@intel.com>2021-10-20 15:38:10 +0800
commit56f1fc08242a07967249fff9f537ea5d3cd0da56 (patch)
treef64a5bcb15ae03a06f364a40c4ea40e45b70d8b8 /meta/lib
parente9c71a121f05b07fcd5ef2acbfac3c2dc9685384 (diff)
downloadopenembedded-core-56f1fc08242a07967249fff9f537ea5d3cd0da56.tar.gz
oeqa/selftest/bbtests: Add uuid to force build test
With hash equivalence working properly, this test breaks as it detects an unchanged tasks and doesn't rerun subsequent tasks. Add a uuid to the payload to ensure it doesn't ever match equivalence and the test works as intended. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d19873b6b5d0068f857a8f9f3686729ba4e67f0f) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/cases/bbtests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/bbtests.py b/meta/lib/oeqa/selftest/cases/bbtests.py
index 79390acc0d..b932d5276b 100644
--- a/meta/lib/oeqa/selftest/cases/bbtests.py
+++ b/meta/lib/oeqa/selftest/cases/bbtests.py
@@ -83,8 +83,10 @@ class BitbakeTests(OESelftestTestCase):
def test_force_task_1(self):
# test 1 from bug 5875
+ import uuid
test_recipe = 'zlib'
- test_data = "Microsoft Made No Profit From Anyone's Zunes Yo"
+ # Need to use uuid otherwise hash equivlance would change the workflow
+ test_data = "Microsoft Made No Profit From Anyone's Zunes Yo %s" % uuid.uuid1()
bb_vars = get_bb_vars(['D', 'PKGDEST', 'mandir'], test_recipe)
image_dir = bb_vars['D']
pkgsplit_dir = bb_vars['PKGDEST']