Skip to content

Commit

Permalink
system-test: filter out "gpgv: can't allocate lock for ..."
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 f3e9638 commit 77fb024
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions system/t04_mirror/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class CreateMirror11Test(BaseTest):
fixtureGpg = True

def outputMatchPrepare(self, s):
return re.sub(r'Signature made .*? using', '', s, flags=re.DOTALL)
return re.sub(r'Signature made .*? using|gpgv: can\'t allocate lock for.*?\n', '', s, flags=re.DOTALL)

def check(self):
self.check_output()
Expand Down Expand Up @@ -166,7 +166,7 @@ class CreateMirror14Test(BaseTest):
fixtureGpg = True

def outputMatchPrepare(self, s):
return re.sub(r'Signature made .*? using', '', s, flags=re.DOTALL)
return re.sub(r'Signature made .*? using|gpgv: can\'t allocate lock for.*?\n', '', s, flags=re.DOTALL)

def check(self):
def removeDates(s):
Expand Down Expand Up @@ -218,7 +218,7 @@ class CreateMirror18Test(BaseTest):
runCmd = "aptly mirror create -keyring=aptlytest.gpg mirror18 ppa:gladky-anton/gnuplot"

def outputMatchPrepare(self, s):
return re.sub(r'Signature made .*? using', '', s, flags=re.DOTALL)
return re.sub(r'Signature made .*? using|gpgv: can\'t allocate lock for.*?\n', '', s, flags=re.DOTALL)

def check(self):
self.check_output()
Expand All @@ -234,7 +234,7 @@ class CreateMirror19Test(BaseTest):
runCmd = "aptly -architectures='i386' mirror create -keyring=aptlytest.gpg -with-sources mirror19 http://security.debian.org/ stretch/updates main"

def outputMatchPrepare(self, s):
return re.sub(r'Signature made .*? using', '', s, flags=re.DOTALL)
return re.sub(r'Signature made .*? using|gpgv: can\'t allocate lock for.*?\n', '', s, flags=re.DOTALL)

def check(self):
def removeDates(s):
Expand Down Expand Up @@ -276,7 +276,7 @@ class CreateMirror21Test(BaseTest):
fixtureGpg = True

def outputMatchPrepare(self, s):
return re.sub(r'Signature made .*? using', '', s, flags=re.DOTALL)
return re.sub(r'Signature made .*? using|gpgv: can\'t allocate lock for.*?\n', '', s, flags=re.DOTALL)

def check(self):
def removeSHA512(s):
Expand Down Expand Up @@ -321,7 +321,7 @@ class CreateMirror24Test(BaseTest):
fixtureGpg = True

def outputMatchPrepare(self, s):
return re.sub(r'Signature made .*? using', '', s, flags=re.DOTALL)
return re.sub(r'Signature made .*? using|gpgv: can\'t allocate lock for.*?\n', '', s, flags=re.DOTALL)

configOverride = {
"gpgDisableVerify": True
Expand Down Expand Up @@ -406,7 +406,7 @@ class CreateMirror32Test(BaseTest):
requiresGPG2 = True

def outputMatchPrepare(self, s):
return re.sub(r'Signature made .*? using', '', s, flags=re.DOTALL)
return re.sub(r'Signature made .*? using|gpgv: can\'t allocate lock for.*?\n', '', s, flags=re.DOTALL)

def check(self):
self.check_output()
Expand Down
2 changes: 1 addition & 1 deletion system/t04_mirror/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def filterOutSignature(_, s):
return re.sub(r'Signature made .*? using', '', s, flags=re.DOTALL)
return re.sub(r'Signature made .*? using|gpgv: can\'t allocate lock for.*?\n', '', s, flags=re.DOTALL)


def filterOutRedirects(_, s):
Expand Down

0 comments on commit 77fb024

Please sign in to comment.