diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2024-05-07 13:46:28 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-28 09:38:23 +0100 |
| commit | f4663a02e5ccfa0ae59624e3e94b99ed1e23fd44 (patch) | |
| tree | ad508e04adec7d38f593fd00e06f5e209cb43d13 /meta | |
| parent | c149c7460549a3c32938a4f5f5c7effdc2e1f85b (diff) | |
| download | poky-f4663a02e5ccfa0ae59624e3e94b99ed1e23fd44.tar.gz | |
selftest/sstatetests: move exception list for cache objects to the parent class
This is useful not just in cdn/local cache tests, but also in the build bundle test,
and so should be applied by default.
(From OE-Core rev: 37f0ba71868ef1907883ab751c82ba222fbc87da)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/sstatetests.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py index 8f843139eb..94ad6e38b6 100644 --- a/meta/lib/oeqa/selftest/cases/sstatetests.py +++ b/meta/lib/oeqa/selftest/cases/sstatetests.py | |||
| @@ -918,13 +918,24 @@ INHERIT += "base-do-configure-modified" | |||
| 918 | expected_sametmp_output, expected_difftmp_output) | 918 | expected_sametmp_output, expected_difftmp_output) |
| 919 | 919 | ||
| 920 | class SStateCheckObjectPresence(SStateBase): | 920 | class SStateCheckObjectPresence(SStateBase): |
| 921 | def check_bb_output(self, output, exceptions, check_cdn): | 921 | def check_bb_output(self, output, targets, exceptions, check_cdn): |
| 922 | def is_exception(object, exceptions): | 922 | def is_exception(object, exceptions): |
| 923 | for e in exceptions: | 923 | for e in exceptions: |
| 924 | if re.search(e, object): | 924 | if re.search(e, object): |
| 925 | return True | 925 | return True |
| 926 | return False | 926 | return False |
| 927 | 927 | ||
| 928 | # sstate is checked for existence of these, but they never get written out to begin with | ||
| 929 | exceptions += ["{}.*image_qa".format(t) for t in targets.split()] | ||
| 930 | exceptions += ["{}.*deploy_source_date_epoch".format(t) for t in targets.split()] | ||
| 931 | exceptions += ["{}.*image_complete".format(t) for t in targets.split()] | ||
| 932 | exceptions += ["linux-yocto.*shared_workdir"] | ||
| 933 | # these get influnced by IMAGE_FSTYPES tweaks in yocto-autobuilder-helper's config.json (on x86-64) | ||
| 934 | # additionally, they depend on noexec (thus, absent stamps) package, install, etc. image tasks, | ||
| 935 | # which makes tracing other changes difficult | ||
| 936 | exceptions += ["{}.*create_spdx".format(t) for t in targets.split()] | ||
| 937 | exceptions += ["{}.*create_runtime_spdx".format(t) for t in targets.split()] | ||
| 938 | |||
| 928 | output_l = output.splitlines() | 939 | output_l = output.splitlines() |
| 929 | for l in output_l: | 940 | for l in output_l: |
| 930 | if l.startswith("Sstate summary"): | 941 | if l.startswith("Sstate summary"): |
| @@ -962,17 +973,6 @@ class SStateCheckObjectPresence(SStateBase): | |||
| 962 | @OETestTag("yocto-mirrors") | 973 | @OETestTag("yocto-mirrors") |
| 963 | class SStateMirrors(SStateCheckObjectPresence): | 974 | class SStateMirrors(SStateCheckObjectPresence): |
| 964 | def run_test(self, machine, targets, exceptions, check_cdn = True, ignore_errors = False): | 975 | def run_test(self, machine, targets, exceptions, check_cdn = True, ignore_errors = False): |
| 965 | # sstate is checked for existence of these, but they never get written out to begin with | ||
| 966 | exceptions += ["{}.*image_qa".format(t) for t in targets.split()] | ||
| 967 | exceptions += ["{}.*deploy_source_date_epoch".format(t) for t in targets.split()] | ||
| 968 | exceptions += ["{}.*image_complete".format(t) for t in targets.split()] | ||
| 969 | exceptions += ["linux-yocto.*shared_workdir"] | ||
| 970 | # these get influnced by IMAGE_FSTYPES tweaks in yocto-autobuilder-helper's config.json (on x86-64) | ||
| 971 | # additionally, they depend on noexec (thus, absent stamps) package, install, etc. image tasks, | ||
| 972 | # which makes tracing other changes difficult | ||
| 973 | exceptions += ["{}.*create_spdx".format(t) for t in targets.split()] | ||
| 974 | exceptions += ["{}.*create_runtime_spdx".format(t) for t in targets.split()] | ||
| 975 | |||
| 976 | if check_cdn: | 976 | if check_cdn: |
| 977 | self.config_sstate(True) | 977 | self.config_sstate(True) |
| 978 | self.append_config(""" | 978 | self.append_config(""" |
| @@ -988,7 +988,7 @@ MACHINE = "{}" | |||
| 988 | bitbake("-S none {}".format(targets)) | 988 | bitbake("-S none {}".format(targets)) |
| 989 | if ignore_errors: | 989 | if ignore_errors: |
| 990 | return | 990 | return |
| 991 | self.check_bb_output(result.output, exceptions, check_cdn) | 991 | self.check_bb_output(result.output, targets, exceptions, check_cdn) |
| 992 | 992 | ||
| 993 | def test_cdn_mirror_qemux86_64(self): | 993 | def test_cdn_mirror_qemux86_64(self): |
| 994 | exceptions = [] | 994 | exceptions = [] |
