Fix system test.

This commit is contained in:
Andrey Smirnov
2015-03-01 22:14:37 +03:00
parent 233ad2528f
commit 7e60466c7b
+4 -1
View File
@@ -249,8 +249,11 @@ class CreateMirror21Test(BaseTest):
def removeSHA512(s):
return re.sub(r"SHA512: .+\n", "", s)
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 mirror21", "mirror_show", match_prepare=removeSHA512)
self.check_cmd_output("aptly mirror show mirror21", "mirror_show", match_prepare=lambda s: removeSHA512(removeDates(s)))
class CreateMirror22Test(BaseTest):