diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-12 13:56:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-16 13:53:17 +0100 |
commit | efc22e755540aba81eec0bf6bedd97004ff1ba74 (patch) | |
tree | f113debc9b23eb4bb0297e9b546ec0dd51b43163 /bitbake/lib/bb/tests/runqueue-tests | |
parent | 1069c364170ffbf1bff276fd965aeb85efbc22f8 (diff) | |
download | poky-efc22e755540aba81eec0bf6bedd97004ff1ba74.tar.gz |
bitbake: 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.
(Bitbake rev: 27ec2e69ab3e32972caf8b072b2945736696d83d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests/runqueue-tests')
-rw-r--r-- | bitbake/lib/bb/tests/runqueue-tests/classes/base.bbclass | 6 |
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) |