diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-13 22:52:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-15 12:22:08 +0100 |
commit | b051ca1289d6d1f0ea91886656ceb1832d380d08 (patch) | |
tree | 3e1002512a7cd5ddedc556d94b39146f86bdec39 | |
parent | de85c2f47b66ec48496c088a5d62d53a2dd899b1 (diff) | |
download | poky-b051ca1289d6d1f0ea91886656ceb1832d380d08.tar.gz |
oeqa/selftest/sstatetests: Update test to work with bitbake changes
Bitbake is dropping the DL_DIR fallback for local file urls and ensuring
local urls are fetchable. This test fails as it copies the meta directory
of COREBASE but not scripts and nativesdk-qemu-helper references runqemu
from there which doesn't exist in the copied data.
Tweak to symlink scripts into position in the copied metadata which
avoids the now fatal parsing error.
(From OE-Core rev: 5a5199943de5df9a4d44277d07f4313642c34b3a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/selftest/cases/sstatetests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py index 4a32af902f..4749f28ab8 100644 --- a/meta/lib/oeqa/selftest/cases/sstatetests.py +++ b/meta/lib/oeqa/selftest/cases/sstatetests.py | |||
@@ -594,6 +594,7 @@ BB_SIGNATURE_HANDLER = "OEBasicHash" | |||
594 | copy_layer_2 = self.topdir + "/meta-copy2/meta" | 594 | copy_layer_2 = self.topdir + "/meta-copy2/meta" |
595 | 595 | ||
596 | oe.path.copytree(core_layer, copy_layer_1) | 596 | oe.path.copytree(core_layer, copy_layer_1) |
597 | os.symlink(os.path.dirname(core_layer) + "/scripts", self.topdir + "/meta-copy1/scripts") | ||
597 | self.write_config(""" | 598 | self.write_config(""" |
598 | TMPDIR = "${TOPDIR}/tmp-sstatesamehash" | 599 | TMPDIR = "${TOPDIR}/tmp-sstatesamehash" |
599 | """) | 600 | """) |
@@ -603,6 +604,7 @@ TMPDIR = "${TOPDIR}/tmp-sstatesamehash" | |||
603 | bitbake("bash -S none") | 604 | bitbake("bash -S none") |
604 | 605 | ||
605 | oe.path.copytree(core_layer, copy_layer_2) | 606 | oe.path.copytree(core_layer, copy_layer_2) |
607 | os.symlink(os.path.dirname(core_layer) + "/scripts", self.topdir + "/meta-copy2/scripts") | ||
606 | self.write_config(""" | 608 | self.write_config(""" |
607 | TMPDIR = "${TOPDIR}/tmp-sstatesamehash2" | 609 | TMPDIR = "${TOPDIR}/tmp-sstatesamehash2" |
608 | """) | 610 | """) |