Skip to content
Snippets Groups Projects
Commit 5feeb8b4 authored by ziggy's avatar ziggy
Browse files

update container clean up in unit & e2e tests

* changed calling syntax of xargs to avoid unhelpful error message
  when no signalboost_dispatcher containers exist

* remove changing directory preface in e2e test for parity with unit tests
parent 7e7e1802
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
pushd `pwd` # store current dir
cd `dirname "$0"` # cd to script path
cd ../../
echo "----- running e2e tests..."
docker-compose -f docker-compose-test-e2e.yml run test_runner
echo "----- shutting down / cleaning up..."
docker-compose -f docker-compose-test-e2e.yml down
docker ps --filter name=signalboost_dispatcher* -aq | xargs docker rm -f
popd # return to original dir
docker ps --filter name=signalboost_dispatcher* -aq | xargs -I container_id docker rm -f container_id
......@@ -10,3 +10,5 @@ docker-compose -f docker-compose-test-unit.yml run test_runner
echo "--- spinning down environment..."
docker-compose -f docker-compose-test-unit.yml down
docker ps --filter name=signalboost_dispatcher* -aq | xargs -I container_id docker rm -f container_id
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment