From 5259d1e31aefe2d188f99cc521ec2ae0be040ecb Mon Sep 17 00:00:00 2001 From: WenzelTian Date: Sun, 26 Feb 2023 22:25:10 +0800 Subject: [PATCH] add the architecture determination when running the wireguard test (#5953) --- test/mitmproxy/proxy/test_mode_servers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/mitmproxy/proxy/test_mode_servers.py b/test/mitmproxy/proxy/test_mode_servers.py index 218764382..f239a3e2e 100644 --- a/test/mitmproxy/proxy/test_mode_servers.py +++ b/test/mitmproxy/proxy/test_mode_servers.py @@ -150,6 +150,10 @@ async def test_wireguard(tdata, monkeypatch, caplog): else: return pytest.skip("Unsupported platform for wg-test-client.") + arch = platform.machine() + if arch != "AMD64" and arch != "x86_64": + return pytest.skip("Unsupported architecture for wg-test-client.") + test_client_path = tdata.path(f"wg-test-client/{test_client_name}") test_conf = tdata.path(f"wg-test-client/test.conf")