Closed jessehl closed 3 years ago
Hi @FryingDutch ,
I made a mistake in the Dockerfile. I tried to redirect the result of the pytest command to a file called test_results.log using tee.
pytest
test_results.log
tee
However, tee did not copy the exit code of pytest, so when the tests failed, the below command would not result in a build error:
RUN pytest | tee /test_results.log
Hi @FryingDutch ,
I made a mistake in the Dockerfile. I tried to redirect the result of the
pytest
command to a file calledtest_results.log
usingtee
.However,
tee
did not copy the exit code ofpytest
, so when the tests failed, the below command would not result in a build error: