Skip to content

Commit

Permalink
Set Docker memory limit for tests to prevent hangs (kudobuilder#511),…
Browse files Browse the repository at this point in the history
… set --rm to remove containers after tests (kudobuilder#512), -it to support cancelling tests.
  • Loading branch information
jbarrick-mesosphere committed Jul 8, 2019
1 parent 919881a commit e16a206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
docker build -f test/Dockerfile -t kudo-test .
if [ $? -eq 0 ]
then
docker run kudo-test
docker run -it -m 4g --rm kudo-test
else
echo "Error when building test docker image, cannot run tests."
exit 1
Expand All @@ -16,4 +16,4 @@ then
echo "Tests finished successfully! ヽ(•‿•)ノ"
fi

exit $DOCKER_EXIT_CODE
exit $DOCKER_EXIT_CODE

0 comments on commit e16a206

Please sign in to comment.