mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
oeqa/sstate: Fix allarch samesigs test
The allarch sstate sigs test is supposed to compare the allarch sigs but does not. Fix this. Also rename the common function to make it clear it isn't just used by the allarch test. (From OE-Core rev: 93a2c497368b56c912d6c9b06f18551cc8c6ddc8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 549597d422c7bcb467f34139ff25d2bee96bf851) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -347,7 +347,7 @@ TCLIBCAPPEND = \"\"
|
||||
MACHINE = \"qemuarm\"
|
||||
BB_SIGNATURE_HANDLER = "OEBasicHash"
|
||||
"""
|
||||
self.sstate_allarch_samesigs(configA, configB)
|
||||
self.sstate_common_samesigs(configA, configB, allarch=True)
|
||||
|
||||
def test_sstate_nativesdk_samesigs_multilib(self):
|
||||
"""
|
||||
@@ -371,9 +371,9 @@ require conf/multilib.conf
|
||||
MULTILIBS = \"\"
|
||||
BB_SIGNATURE_HANDLER = "OEBasicHash"
|
||||
"""
|
||||
self.sstate_allarch_samesigs(configA, configB)
|
||||
self.sstate_common_samesigs(configA, configB)
|
||||
|
||||
def sstate_allarch_samesigs(self, configA, configB):
|
||||
def sstate_common_samesigs(self, configA, configB, allarch=False):
|
||||
|
||||
self.write_config(configA)
|
||||
self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash")
|
||||
@@ -401,6 +401,13 @@ BB_SIGNATURE_HANDLER = "OEBasicHash"
|
||||
self.maxDiff = None
|
||||
self.assertEqual(files1, files2)
|
||||
|
||||
if allarch:
|
||||
allarchdir = os.path.basename(glob.glob(self.topdir + "/tmp-sstatesamehash/stamps/all-*-linux")[0])
|
||||
|
||||
files1 = get_files(self.topdir + "/tmp-sstatesamehash/stamps/" + allarchdir)
|
||||
files2 = get_files(self.topdir + "/tmp-sstatesamehash2/stamps/" + allarchdir)
|
||||
self.assertEqual(files1, files2)
|
||||
|
||||
def test_sstate_sametune_samesigs(self):
|
||||
"""
|
||||
The sstate checksums of two identical machines (using the same tune) should be the
|
||||
|
||||
Reference in New Issue
Block a user