Strip irrelevant lines from test output

It may happen that aptly retries to download data during tests (maybe because
of a network issue), but our fixtures doesn't account for it. So, we strip
those irrelevant lines before comparison.
This commit is contained in:
Lorenzo Bolla committed 2022-01-27 09:30:14 +01:00
1 parent 122ff609e8
commit 48635c8057
2 files changed
+17

No files matched your search

+3
View File
@@ -362,6 +362,9 @@ class CreateMirror27Test(BaseTest):
"""
runCmd = "aptly mirror create --ignore-signatures mirror27 http://linux.dell.com/repo/community/ubuntu wheezy openmanage/740"
def outputMatchPrepare(self, s):
return self.strip_retry_lines(s)
def check(self):
self.check_output()
self.check_cmd_output("aptly mirror show mirror27", "mirror_show")