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.

(From OE-Core rev: 146e6e88b6c9400eb2c7442a319a6240b00ecaa2)

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>
This commit is contained in:
Alexander Kanavin
2024-01-30 09:09:33 +01:00
committed by Richard Purdie
parent ab37ae5bdd
commit 1bd73eddb5

View File

@@ -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)))