mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-06 05:30:57 +00:00
Fix tests for flat repos
This commit is contained in:
@@ -168,8 +168,11 @@ class CreateMirror14Test(BaseTest):
|
||||
return re.sub(r'Signature made .* using', '', s)
|
||||
|
||||
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 mirror14", "mirror_show")
|
||||
self.check_cmd_output("aptly mirror show mirror14", "mirror_show", match_prepare=removeDates)
|
||||
|
||||
|
||||
class CreateMirror15Test(BaseTest):
|
||||
|
||||
Reference in New Issue
Block a user