mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Fix system tests for Go 1.5.
Some error strings in Go 1.5 have changed. Until we have something better for that, use string replace.
This commit is contained in:
@@ -231,6 +231,7 @@ class CreateMirror20Test(BaseTest):
|
|||||||
create mirror: using failing HTTP_PROXY
|
create mirror: using failing HTTP_PROXY
|
||||||
"""
|
"""
|
||||||
fixtureGpg = True
|
fixtureGpg = True
|
||||||
|
outputMatchPrepare = lambda _, s: s.replace('getsockopt: ', '')
|
||||||
|
|
||||||
runCmd = "aptly -architectures='i386' mirror create -keyring=aptlytest.gpg -with-sources mirror20 http://security.debian.org/ wheezy/updates main"
|
runCmd = "aptly -architectures='i386' mirror create -keyring=aptlytest.gpg -with-sources mirror20 http://security.debian.org/ wheezy/updates main"
|
||||||
environmentOverride = {"HTTP_PROXY": "127.0.0.1:3137"}
|
environmentOverride = {"HTTP_PROXY": "127.0.0.1:3137"}
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ class IncludeRepo3Test(BaseTest):
|
|||||||
]
|
]
|
||||||
runCmd = "aptly repo include -no-remove-files -keyring=${files}/aptly.pub -repo=my-{{.Distribution} ${changes}"
|
runCmd = "aptly repo include -no-remove-files -keyring=${files}/aptly.pub -repo=my-{{.Distribution} ${changes}"
|
||||||
expectedCode = 1
|
expectedCode = 1
|
||||||
|
outputMatchPrepare = lambda _, s: s.replace('; missing space?', '')
|
||||||
|
|
||||||
|
|
||||||
class IncludeRepo4Test(BaseTest):
|
class IncludeRepo4Test(BaseTest):
|
||||||
|
|||||||
Reference in New Issue
Block a user