[oe-commits] [bitbake] 31/31: tests/runqueue: Allow common sstate tasks to become valid

git at git.openembedded.org git at git.openembedded.org
Mon Jul 15 08:33:42 UTC 2019

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 5118797de86a9eb21ad5029bbe37e357d2f529f5
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Jul 12 13:56:21 2019 +0100

    tests/runqueue: Allow common sstate tasks to become valid
    As the logic in bitbake improves, the logic in the tests needs to as well.
    Afer we built a task for the first time, allow its setscene hash verification
    status to change, mirroring what would happen in a multiconfig build.
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
 lib/bb/tests/runqueue-tests/classes/base.bbclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/bb/tests/runqueue-tests/classes/base.bbclass b/lib/bb/tests/runqueue-tests/classes/base.bbclass
index cf38d09..5b87e20 100644
--- a/lib/bb/tests/runqueue-tests/classes/base.bbclass
+++ b/lib/bb/tests/runqueue-tests/classes/base.bbclass
@@ -5,6 +5,9 @@ def stamptask(d):
     import time
     thistask = d.expand("${PN}:${BB_CURRENTTASK}")
+    with open(d.expand("${TOPDIR}/%s.run") % thistask, "a+") as f:
+        f.write("\n")
     if d.getVar("BB_CURRENT_MC") != "default":
         thistask = d.expand("${BB_CURRENT_MC}:${PN}:${BB_CURRENTTASK}")
     if thistask in d.getVar("SLOWTASKS").split():
@@ -225,6 +228,9 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d, siginfo=False, *,
         if n in valid:
             bb.note("SState: Found valid sstate for %s" % n)
+        elif os.path.exists(d.expand("${TOPDIR}/%s.run" % n.replace("do_", ""))):
+            bb.note("SState: Found valid sstate for %s (already run)" % n)
+            ret.append(task)
             bb.note("SState: Found no valid sstate for %s" % n)

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list