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
2022-01-26 17:07:38 +01:00
parent 122ff609e8
commit 48635c8057
2 changed files with 17 additions and 0 deletions
+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")