From dab7d1f8285f1a49268597d4f981ecf54e1349e5 Mon Sep 17 00:00:00 2001 From: Andreas Antener Date: Wed, 20 Apr 2016 17:23:05 +0200 Subject: [PATCH] allways pull latest container before running tests --- integrationtests/run_container.bash | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/integrationtests/run_container.bash b/integrationtests/run_container.bash index 73272d13a4..8c319db91d 100755 --- a/integrationtests/run_container.bash +++ b/integrationtests/run_container.bash @@ -11,10 +11,14 @@ if [ -z "$WORKSPACE" ]; then fi # Pulling latest image -# TODO: remove old one to save space, until then, update manually -#echo "===> pull latest Docker image" -#docker pull px4io/sitl-testing -#echo "<===" +echo "===> pull latest Docker image" +docker pull px4io/px4-dev-ros + +# removing some images might fail +set +e +docker rmi $(docker images --filter "dangling=true" -q --no-trunc) +set -e +echo "<===" # # Running SITL testing container