From: Alexander Kanavin Date: Tue, 30 Jan 2024 08:09:33 +0000 (+0100) Subject: setftest/cdn tests: check for exceptions also in fetcher diagnostics X-Git-Tag: uninative-4.4~300 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=146e6e88b6c9400eb2c7442a319a6240b00ecaa2;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git setftest/cdn tests: check for exceptions also in fetcher diagnostics Otherwise the output was cluttered with irrelevant lines that were describing missing, but excepted cache objects. Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py index f7632286450..3a2d39ad0c4 100644 --- a/meta/lib/oeqa/selftest/cases/sstatetests.py +++ b/meta/lib/oeqa/selftest/cases/sstatetests.py @@ -923,7 +923,7 @@ class SStateMirrors(SStateBase): else: missing_objects -= 1 - if "urlopen failed for" in l: + if "urlopen failed for" in l and not is_exception(l, exceptions): failed_urls_extrainfo.append(l) self.assertEqual(len(failed_urls), missing_objects, "Amount of reported missing objects does not match failed URLs: {}\nFailed URLs:\n{}\nFetcher diagnostics:\n{}".format(missing_objects, "\n".join(failed_urls), "\n".join(failed_urls_extrainfo)))