This repository was archived by the owner on Jul 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
engine/e2e-test/api/model Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
import pytest
2
2
import requests
3
3
import time
4
+ import platform
4
5
from utils .test_runner import (
5
6
run ,
6
7
start_server ,
@@ -111,16 +112,18 @@ async def test_models_start_stop_should_be_successful(self):
111
112
response = requests .get ("http://localhost:3928/v1/models" )
112
113
assert response .status_code == 200
113
114
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 } "
120
123
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 } "
124
127
125
128
# update API
126
129
print ("Update model" )
You can’t perform that action at this time.
0 commit comments