mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
smoke-test docker images after building
This commit is contained in:
parent
0b10f2795d
commit
ea0c0f8350
@ -356,6 +356,20 @@ def build_docker_image(be: BuildEnviron): # pragma: no cover
|
||||
"--file", "release/docker/Dockerfile",
|
||||
"."
|
||||
])
|
||||
# smoke-test the newly built docker image
|
||||
r = subprocess.run([
|
||||
"docker",
|
||||
"run",
|
||||
"--rm",
|
||||
"--it",
|
||||
"mitmproxy/mitmproxy:" + be.docker_tag,
|
||||
"mitmproxy",
|
||||
"--version",
|
||||
], check=True)
|
||||
assert "Mitmproxy: " + be.version in r.stdout.decode()
|
||||
assert "Python: " in r.stdout.decode()
|
||||
assert "OpenSSL: " in r.stdout.decode()
|
||||
assert "Platform: " in r.stdout.decode()
|
||||
|
||||
|
||||
def build_pyinstaller(be: BuildEnviron): # pragma: no cover
|
||||
|
Loading…
Reference in New Issue
Block a user