Skip to content

Commit eb095a2

Browse files
committed
fix rebase
Signed-off-by: Ian Eaves <[email protected]>
1 parent 1e636e0 commit eb095a2

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

test/e2e/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import shutil
44
import string
55
import subprocess
6+
import sys
67
import time
78
from dataclasses import dataclass, field
89
from pathlib import Path
@@ -13,6 +14,10 @@
1314
import pytest
1415
import requests
1516

17+
if sys.byteorder == "big":
18+
# Most tests assume little-endian so need to disable endianness verification on big-endian systems
19+
os.environ["RAMALAMA_VERIFY"] = "false"
20+
1621

1722
@dataclass
1823
class Registry:

test/e2e/test_help.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def test_help_output(subcommand):
8787
@pytest.mark.parametrize("command", ["run", "bench", "serve"], ids=lambda x: f"ramalama {x}")
8888
def test_default_image(monkeypatch, command):
8989
monkeypatch.delenv("RAMALAMA_DEFAULT_IMAGE", raising=False)
90+
monkeypatch.delenv("RAMALAMA_IMAGES", raising=False)
9091
result = check_output(["ramalama", command, "--help"])
9192
match = DEFAULT_IMAGE_PATTERN.search(result.replace("\n", ""))
9293

test/e2e/test_info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
@skip_if_gh_actions_darwin
1515
def test_info(monkeypatch, container_engine):
1616
monkeypatch.delenv("RAMALAMA_DEFAULT_IMAGE", raising=False)
17+
monkeypatch.delenv("RAMALAMA_IMAGES", raising=False)
1718
info = json.loads(check_output(["ramalama", "info"]))
1819

1920
assert info["Image"].startswith("quay.io/ramalama/")

test/e2e/test_inspect.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
22
import re
3-
import sys
43
from subprocess import STDOUT, CalledProcessError
54
from test.e2e.utils import RamalamaExecWorkspace
65

@@ -37,9 +36,7 @@ def test_inspect_non_existent_model(shared_ctx):
3736
pytest.param(GGUF_MODEL, False, ["Registry"], "ollama", id="gguf_inspect_registry"),
3837
pytest.param(GGUF_MODEL, False, ["Format"], "GGUF", id="gguf_inspect_format"),
3938
pytest.param(GGUF_MODEL, False, ["Version"], "3", id="gguf_inspect_version"),
40-
pytest.param(
41-
GGUF_MODEL, False, ["Endianness"], "0" if sys.byteorder == "little" else "1", id="gguf_inspect_endianness"
42-
),
39+
pytest.param(GGUF_MODEL, False, ["Endianness"], "0", id="gguf_inspect_endianness"),
4340
pytest.param(GGUF_MODEL, False, ["Metadata"], "23", id="gguf_inspect_metadata_count"),
4441
pytest.param(GGUF_MODEL, False, ["Tensors"], "201", id="gguf_inspect_tensors_count"),
4542
pytest.param(
@@ -62,7 +59,7 @@ def test_inspect_non_existent_model(shared_ctx):
6259
GGUF_MODEL,
6360
True,
6461
["Endianness"],
65-
"0" if sys.byteorder == "little" else "1",
62+
"0",
6663
id="gguf_inspect_all_endianness",
6764
),
6865
pytest.param(

test/e2e/test_serve.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,10 +770,8 @@ def test_serve_with_rag():
770770
with RamalamaExecWorkspace() as ctx:
771771
result_a = ctx.check_output(RAMALAMA_DRY_RUN + ["--rag", "quay.io/ramalama/rag", "--pull", "never", "tiny"])
772772
assert re.search(r".*llama-server", result_a)
773-
assert re.search(r".*--port 8081", result_a)
774773
assert re.search(r".*quay.io/.*-rag(@sha256)?:", result_a)
775774
assert re.search(r".*rag_framework serve", result_a)
776-
assert re.search(r".*--port 8080", result_a)
777775
assert re.search(r".*--mount=type=image,source=quay.io/ramalama/rag,destination=/rag,rw=true", result_a)
778776

779777
result_b = ctx.check_output(

0 commit comments

Comments
 (0)