mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Fix system tests. #15
This commit is contained in:
@@ -53,7 +53,8 @@ class EditMirror5Test(BaseTest):
|
||||
runCmd = "aptly mirror edit -filter= mirror5"
|
||||
|
||||
def check(self):
|
||||
def removeDates(s):
|
||||
return re.sub(r"(Date|Valid-Until): [,0-9:+A-Za-z -]+\n", "", s)
|
||||
|
||||
self.check_output()
|
||||
self.check_cmd_output("aptly mirror show mirror5", "mirror_show")
|
||||
|
||||
|
||||
self.check_cmd_output("aptly mirror show mirror5", "mirror_show", match_prepare=removeDates)
|
||||
|
||||
Reference in New Issue
Block a user