mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Fix tests for flat repos
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
|
||||
Building download queue...
|
||||
Download queue: 84 items (138.28 MiB)
|
||||
Download queue: 84 items (138.29 MiB)
|
||||
Downloading & parsing package files...
|
||||
Downloading https://cloud.r-project.org/bin/linux/debian/jessie-cran3/InRelease...
|
||||
Downloading https://cloud.r-project.org/bin/linux/debian/jessie-cran3/Packages.bz2...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
|
||||
Building download queue...
|
||||
Download queue: 160 items (184.37 MiB)
|
||||
Download queue: 160 items (184.38 MiB)
|
||||
Downloading & parsing package files...
|
||||
Downloading https://cloud.r-project.org/bin/linux/debian/jessie-cran3/InRelease...
|
||||
Downloading https://cloud.r-project.org/bin/linux/debian/jessie-cran3/Packages.bz2...
|
||||
|
||||
@@ -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