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 11import pytest
22import requests
33import time
4+ import platform
45from 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" )
You can’t perform that action at this time.
0 commit comments