Skip to content

Commit

Permalink
system-test: skip duplicated download redirect messages
Browse files Browse the repository at this point in the history
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
  • Loading branch information
vicamo committed Jan 28, 2022
1 parent 77fb024 commit e1e8ac0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion system/t04_mirror/CreateMirror27Test_gold
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Downloading http://linux.dell.com/repo/community/ubuntu/dists/wheezy/Release...
Following redirect to https://linux.dell.com/repo/community/ubuntu/dists/wheezy/Release...

Mirror [mirror27]: http://linux.dell.com/repo/community/ubuntu/ wheezy successfully added.
You can run 'aptly mirror update mirror27' to download repository contents.
5 changes: 5 additions & 0 deletions system/t04_mirror/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
from lib import BaseTest


def filterOutRedirects(_, s):
return re.sub(r'Following redirect to .+?\n', '', s)


class CreateMirror1Test(BaseTest):
"""
create mirror: all architectures + all components
Expand Down Expand Up @@ -353,6 +357,7 @@ class CreateMirror27Test(BaseTest):
create mirror: component with slashes, no stripping
"""
runCmd = "aptly mirror create --ignore-signatures mirror27 http://linux.dell.com/repo/community/ubuntu wheezy openmanage/740"
output_processor = filterOutRedirects

def check(self):
self.check_output()
Expand Down

0 comments on commit e1e8ac0

Please sign in to comment.