Skip to content

Commit ea4e450

Browse files
committed
Use simple pytest/gcovr commands in verification instead of hardcoded paths
- Replace hardcoded venv paths with simple pytest/gcovr commands - Activate ESP-IDF environment for verification (works on amd64) - Cleaner, more maintainable verification step
1 parent 92ecd34 commit ea4e450

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

images/esp-idf/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,16 @@ RUN /opt/esp/python_env/idf5.4_py3.12_env/bin/pip install --no-cache-dir \
9191
WORKDIR /workspace
9292

9393
# Verify installation
94-
# Use venv python -m to verify packages (packages are installed in venv)
9594
ARG ESP_IDF_VERSION
96-
RUN python3 --version && \
97-
/opt/esp/python_env/idf5.4_py3.12_env/bin/python3 -m pytest --version && \
95+
RUN bash -c '. ${IDF_PATH}/export.sh && \
96+
python3 --version && \
97+
pytest --version && \
9898
jq --version && \
9999
qemu-system-xtensa --version && \
100100
qemu-system-riscv32 --version && \
101-
/opt/esp/python_env/idf5.4_py3.12_env/bin/python3 -m gcovr --version && \
101+
gcovr --version && \
102102
ccache --version && \
103-
echo "ESP-IDF ${ESP_IDF_VERSION} installation verified successfully"
103+
echo "ESP-IDF ${ESP_IDF_VERSION} installation verified successfully"'
104104

105105
CMD ["/bin/bash"]
106106

0 commit comments

Comments
 (0)