Install only the necessary files during a DevStack gate run

Previously, we installed all files in contrib/devstack, which includes
a sample localrc file which should not be used.

Change-Id: I5e73a42509e339e3f1a576b3e44ee00413fa566c
This commit is contained in:
Kiall Mac Innes 2014-07-25 15:56:34 -07:00
parent 112d292a27
commit fbb2401861

View File

@ -3,8 +3,13 @@
set -ex
# Install designate devstack integration
cp -R $BASE/new/designate/contrib/devstack/* $BASE/new/devstack
pushd $BASE/new/designate/contrib/devstack
# Temp Hack to remove the localrc we copy over, will be fixed in
# the next review
rm $BASE/new/devstack/localrc
for f in lib/* extras.d/* exercises/*; do
if [ ! -e "$BASE/new/devstack/$f" ]; then
echo "Installing: $f"
cp -r $f $BASE/new/devstack/$f
fi
done
popd