From 4c57c358b74b0929431951ebae765c49a1f05f33 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Thu, 26 Feb 2015 09:28:12 +0300 Subject: [PATCH] One more attempt to fix system tests. --- system/t04_mirror/create.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/t04_mirror/create.py b/system/t04_mirror/create.py index dd739417..98412b88 100644 --- a/system/t04_mirror/create.py +++ b/system/t04_mirror/create.py @@ -326,5 +326,8 @@ class CreateMirror28Test(BaseTest): runCmd = "aptly mirror create -ignore-signatures -force-components mirror28 http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" 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 mirror28", "mirror_show") + self.check_cmd_output("aptly mirror show mirror28", "mirror_show", match_prepare=removeDates)