Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 1e99861

Browse files
committed
chore: skips some tests for linux arm
1 parent 7487304 commit 1e99861

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

engine/e2e-test/api/model/test_api_model.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
22
import requests
33
import time
4+
import platform
45
from utils.test_runner import (
56
run,
67
start_server,
@@ -111,16 +112,18 @@ async def test_models_start_stop_should_be_successful(self):
111112
response = requests.get("http://localhost:3928/v1/models")
112113
assert response.status_code == 200
113114

114-
print("Start model")
115-
json_body = {"model": "tinyllama:1b"}
116-
response = requests.post(
117-
"http://localhost:3928/v1/models/start", json=json_body
118-
)
119-
assert response.status_code == 200, f"status_code: {response.status_code}"
115+
# Skip tests for linux arm
116+
if platform.machine() != "aarch64":
117+
print("Start model")
118+
json_body = {"model": "tinyllama:1b"}
119+
response = requests.post(
120+
"http://localhost:3928/v1/models/start", json=json_body
121+
)
122+
assert response.status_code == 200, f"status_code: {response.status_code}"
120123

121-
print("Stop model")
122-
response = requests.post("http://localhost:3928/v1/models/stop", json=json_body)
123-
assert response.status_code == 200, f"status_code: {response.status_code}"
124+
print("Stop model")
125+
response = requests.post("http://localhost:3928/v1/models/stop", json=json_body)
126+
assert response.status_code == 200, f"status_code: {response.status_code}"
124127

125128
# update API
126129
print("Update model")

0 commit comments

Comments
 (0)