Skip to content

Commit 277cb4f

Browse files
committed
make sure host is not in container, dont care about llama.cpp args
Signed-off-by: Kush Gupta <[email protected]>
1 parent d77b7ce commit 277cb4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/system/040-serve.bats

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ verify_begin=".*run --rm"
2323
run_ramalama -q --dryrun serve --name foobar ${model}
2424
is "$output" ".*--name foobar .*" "dryrun correct with --name"
2525
assert "$output" !~ ".*--network" "--network is not part of the output"
26-
assert "$output" !~ ".*--host 0.0.0.0" "verify host 0.0.0.0 is not added when run within container"
26+
# Extract container args (everything before the image name) and verify --host is not there
27+
container_args=$(echo "$output" | sed 's/quay\.io\/ramalama\/ramalama.*//')
28+
assert "$container_args" !~ ".*--host" "verify --host is not added to container arguments"
2729
is "$output" ".*${model}" "verify model name"
2830
assert "$output" !~ ".*--seed" "assert seed does not show by default"
2931

0 commit comments

Comments
 (0)