summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/tests')
-rw-r--r--bitbake/lib/bb/tests/runqueue-tests/classes/base.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/runqueue-tests/classes/base.bbclass b/bitbake/lib/bb/tests/runqueue-tests/classes/base.bbclass
index cf38d09224..5b87e20bce 100644
--- a/bitbake/lib/bb/tests/runqueue-tests/classes/base.bbclass
+++ b/bitbake/lib/bb/tests/runqueue-tests/classes/base.bbclass
@@ -5,6 +5,9 @@ def stamptask(d):
5 import time 5 import time
6 6
7 thistask = d.expand("${PN}:${BB_CURRENTTASK}") 7 thistask = d.expand("${PN}:${BB_CURRENTTASK}")
8 with open(d.expand("${TOPDIR}/%s.run") % thistask, "a+") as f:
9 f.write("\n")
10
8 if d.getVar("BB_CURRENT_MC") != "default": 11 if d.getVar("BB_CURRENT_MC") != "default":
9 thistask = d.expand("${BB_CURRENT_MC}:${PN}:${BB_CURRENTTASK}") 12 thistask = d.expand("${BB_CURRENT_MC}:${PN}:${BB_CURRENTTASK}")
10 if thistask in d.getVar("SLOWTASKS").split(): 13 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, *,
225 if n in valid: 228 if n in valid:
226 bb.note("SState: Found valid sstate for %s" % n) 229 bb.note("SState: Found valid sstate for %s" % n)
227 ret.append(task) 230 ret.append(task)
231 elif os.path.exists(d.expand("${TOPDIR}/%s.run" % n.replace("do_", ""))):
232 bb.note("SState: Found valid sstate for %s (already run)" % n)
233 ret.append(task)
228 else: 234 else:
229 missed.append(task) 235 missed.append(task)
230 bb.note("SState: Found no valid sstate for %s" % n) 236 bb.note("SState: Found no valid sstate for %s" % n)