server: tests: ci tests.sh exit code

This commit is contained in:
Pierrick HYMBERT 2024-02-21 23:06:20 +01:00
parent 01cca6625b
commit 534998dbb9
3 changed files with 5 additions and 6 deletions

View file

@ -1,4 +1,8 @@
import time
def after_scenario(context, scenario):
print("stopping server...")
context.server_process.kill()
# Wait few for socket to be free up
time.sleep(0.05)

View file

@ -6,6 +6,7 @@ Feature: Security
And a model file stories260K.gguf
And a server api key llama.cpp
Then the server is starting
Then the server is healthy
Scenario Outline: Completion with some user api key
Given a prompt test

View file

@ -1,11 +1,5 @@
#!/bin/bash
# kill any dandling server at the end
cleanup() {
pkill -P $$
}
trap cleanup EXIT
set -eu
# Start @llama.cpp scenario