diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-08 23:17:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-11 15:48:11 +0000 |
commit | 16110cdca7211b0efc59464afbb253527c033cad (patch) | |
tree | 14db5db30ed2b9e3b234fc7aee25d5f3f1455bcf | |
parent | 9d4dd141bf5bfed0f1d5e3a4ce094d45c8921d00 (diff) | |
download | poky-16110cdca7211b0efc59464afbb253527c033cad.tar.gz |
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: 549597d422c7bcb467f34139ff25d2bee96bf851)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/selftest/cases/sstatetests.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py index 70ef10cda5..96b2d115ed 100644 --- a/meta/lib/oeqa/selftest/cases/sstatetests.py +++ b/meta/lib/oeqa/selftest/cases/sstatetests.py | |||
@@ -350,7 +350,7 @@ MACHINE = \"qemuarm\" | |||
350 | OLDEST_KERNEL = \"3.3.0\" | 350 | OLDEST_KERNEL = \"3.3.0\" |
351 | BB_SIGNATURE_HANDLER = "OEBasicHash" | 351 | BB_SIGNATURE_HANDLER = "OEBasicHash" |
352 | """ | 352 | """ |
353 | self.sstate_allarch_samesigs(configA, configB) | 353 | self.sstate_common_samesigs(configA, configB, allarch=True) |
354 | 354 | ||
355 | def test_sstate_nativesdk_samesigs_multilib(self): | 355 | def test_sstate_nativesdk_samesigs_multilib(self): |
356 | """ | 356 | """ |
@@ -374,9 +374,9 @@ require conf/multilib.conf | |||
374 | MULTILIBS = \"\" | 374 | MULTILIBS = \"\" |
375 | BB_SIGNATURE_HANDLER = "OEBasicHash" | 375 | BB_SIGNATURE_HANDLER = "OEBasicHash" |
376 | """ | 376 | """ |
377 | self.sstate_allarch_samesigs(configA, configB) | 377 | self.sstate_common_samesigs(configA, configB) |
378 | 378 | ||
379 | def sstate_allarch_samesigs(self, configA, configB): | 379 | def sstate_common_samesigs(self, configA, configB, allarch=False): |
380 | 380 | ||
381 | self.write_config(configA) | 381 | self.write_config(configA) |
382 | self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash") | 382 | self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash") |
@@ -404,6 +404,13 @@ BB_SIGNATURE_HANDLER = "OEBasicHash" | |||
404 | self.maxDiff = None | 404 | self.maxDiff = None |
405 | self.assertEqual(files1, files2) | 405 | self.assertEqual(files1, files2) |
406 | 406 | ||
407 | if allarch: | ||
408 | allarchdir = os.path.basename(glob.glob(self.topdir + "/tmp-sstatesamehash/stamps/all-*-linux")[0]) | ||
409 | |||
410 | files1 = get_files(self.topdir + "/tmp-sstatesamehash/stamps/" + allarchdir) | ||
411 | files2 = get_files(self.topdir + "/tmp-sstatesamehash2/stamps/" + allarchdir) | ||
412 | self.assertEqual(files1, files2) | ||
413 | |||
407 | def test_sstate_sametune_samesigs(self): | 414 | def test_sstate_sametune_samesigs(self): |
408 | """ | 415 | """ |
409 | The sstate checksums of two identical machines (using the same tune) should be the | 416 | The sstate checksums of two identical machines (using the same tune) should be the |