aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-12 13:56:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-16 13:52:57 +0100
commit27ec2e69ab3e32972caf8b072b2945736696d83d (patch)
treeb67dbb1ce399707d9c0d2c441b7790b030c237b8
parenta75c5fd6d4ec56836de0be2fe679c81297a080ad (diff)
downloadbitbake-27ec2e69ab3e32972caf8b072b2945736696d83d.tar.gz
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@linuxfoundation.org>
-rw-r--r--lib/bb/tests/runqueue-tests/classes/base.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/tests/runqueue-tests/classes/base.bbclass b/lib/bb/tests/runqueue-tests/classes/base.bbclass
index cf38d0922..5b87e20bc 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)
ret.append(task)
+ 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)
else:
missed.append(task)
bb.note("SState: Found no valid sstate for %s" % n)