add the architecture determination when running the wireguard test (#5953)

This commit is contained in:
WenzelTian 2023-02-26 22:25:10 +08:00 committed by GitHub
parent 01c1090ec1
commit 5259d1e31a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")