server: tests: ci tests.sh exit code
This commit is contained in:
parent
01cca6625b
commit
534998dbb9
3 changed files with 5 additions and 6 deletions
|
@ -1,4 +1,8 @@
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
def after_scenario(context, scenario):
|
def after_scenario(context, scenario):
|
||||||
print("stopping server...")
|
print("stopping server...")
|
||||||
context.server_process.kill()
|
context.server_process.kill()
|
||||||
|
# Wait few for socket to be free up
|
||||||
|
time.sleep(0.05)
|
||||||
|
|
|
@ -6,6 +6,7 @@ Feature: Security
|
||||||
And a model file stories260K.gguf
|
And a model file stories260K.gguf
|
||||||
And a server api key llama.cpp
|
And a server api key llama.cpp
|
||||||
Then the server is starting
|
Then the server is starting
|
||||||
|
Then the server is healthy
|
||||||
|
|
||||||
Scenario Outline: Completion with some user api key
|
Scenario Outline: Completion with some user api key
|
||||||
Given a prompt test
|
Given a prompt test
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# kill any dandling server at the end
|
|
||||||
cleanup() {
|
|
||||||
pkill -P $$
|
|
||||||
}
|
|
||||||
trap cleanup EXIT
|
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
# Start @llama.cpp scenario
|
# Start @llama.cpp scenario
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue