mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-02 04:50:49 +00:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user