FryingDutch / DoubleDutch

DoubleDutch: a distributed advisory lock
0 stars 1 forks source link

Abort when tests fail #12

Closed jessehl closed 3 years ago

jessehl commented 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.

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