Unverified Commit 06fd9ffc authored by Andreas Karatzas's avatar Andreas Karatzas Committed by GitHub
Browse files

[ROCm][CI] Fix ROCm Dockerfile conftest generation for older Docker parsers (#38959)


Signed-off-by: default avatarAndreas Karatzas <akaratza@amd.com>
parent cab4064c
...@@ -390,21 +390,21 @@ ENV MIOPEN_DEBUG_CONV_GEMM=0 ...@@ -390,21 +390,21 @@ ENV MIOPEN_DEBUG_CONV_GEMM=0
RUN mkdir src && mv vllm src/vllm RUN mkdir src && mv vllm src/vllm
# This is a workaround to ensure pytest exits with the correct status code in CI tests. # This is a workaround to ensure pytest exits with the correct status code in CI tests.
RUN cat << 'EOF' > /vllm-workspace/conftest.py RUN printf '%s\n' \
import os 'import os' \
'' \
_exit_code = 1 '_exit_code = 1' \
'' \
def pytest_sessionfinish(session, exitstatus): 'def pytest_sessionfinish(session, exitstatus):' \
global _exit_code ' global _exit_code' \
_exit_code = int(exitstatus) ' _exit_code = int(exitstatus)' \
'' \
def pytest_unconfigure(config): 'def pytest_unconfigure(config):' \
import sys ' import sys' \
sys.stdout.flush() ' sys.stdout.flush()' \
sys.stderr.flush() ' sys.stderr.flush()' \
os._exit(_exit_code) ' os._exit(_exit_code)' \
EOF > /vllm-workspace/conftest.py
# ----------------------- # -----------------------
# Final vLLM image # Final vLLM image
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment