Skip to content

Commit

Permalink
server: tests: ci tests.sh exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
phymbert committed Feb 21, 2024
1 parent 01cca66 commit 534998d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions examples/server/tests/features/environment.py
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions examples/server/tests/features/security.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions examples/server/tests/tests.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 534998d

Please sign in to comment.