X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=trusty%2Fdebian%2Ftests%2Ftest-plugin;fp=trusty%2Fdebian%2Ftests%2Ftest-plugin;h=0000000000000000000000000000000000000000;hb=33f494780fed13daabda23be6ceef83210e1d403;hp=1dac269cabdfc82fec5ac0cc5ff458ceabba59b1;hpb=54c2ba6a6661f3214775d91c5755c37c685574a4;p=openstack-build%2Fneutron-build.git diff --git a/trusty/debian/tests/test-plugin b/trusty/debian/tests/test-plugin deleted file mode 100755 index 1dac269ca..000000000 --- a/trusty/debian/tests/test-plugin +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -#-------------- -# Test a plugin -#-------------- -set -e - -pkg=$1 -conf=$2 -plugin=$3 - -apt-get -y install $pkg - -# update plugin path and config -sed -i "s|NEUTRON_PLUGIN_CONFIG.*|NEUTRON_PLUGIN_CONFIG=\"$conf\"|g" /etc/default/neutron-server -sed -i "s/core_plugin = .*/core_plugin = $plugin/g" /etc/neutron/neutron.conf - -service neutron-server restart > /dev/null 2>&1 - -sleep 5 - -if service neutron-server status > /dev/null; then - apt-get -y remove --purge $pkg - echo "OK" -else - echo "ERROR: $pkg IS NOT RUNNING" - tail -50 /var/log/neutron/neutron-server.log - apt-get -y remove --purge $pkg - exit 1 -fi