Merge pull request #3944 from mitmproxy/fix-docker-smoke-test

Fix docker smoke test
This commit is contained in:
Maximilian Hils 2020-04-18 19:40:21 +02:00 committed by GitHub
commit 408c9a6ff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,15 +361,12 @@ def build_docker_image(be: BuildEnviron): # pragma: no cover
"docker", "docker",
"run", "run",
"--rm", "--rm",
"--it", be.docker_tag,
"mitmproxy/mitmproxy:" + be.docker_tag, "mitmdump",
"mitmproxy",
"--version", "--version",
], check=True) ], check=True, capture_output=True)
assert "Mitmproxy: " + be.version in r.stdout.decode() print(r.stdout.decode())
assert "Python: " in r.stdout.decode() assert "Mitmproxy: " in r.stdout.decode()
assert "OpenSSL: " in r.stdout.decode()
assert "Platform: " in r.stdout.decode()
def build_pyinstaller(be: BuildEnviron): # pragma: no cover def build_pyinstaller(be: BuildEnviron): # pragma: no cover