Otherwise the output was cluttered with irrelevant lines that were
describing missing, but excepted cache objects.
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>
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)))