Make it possible to run zuul layout test locally

Add a tox environment to run the zuul layout tests locally.

Modify run-layout.sh to ignore a missing mirror selection script
and assume that it is running with a valid mirror configuration.
This allows the script to be run locally without breaking a
dev environment.

Change-Id: I5b0c94ae51e7f41b8b26b3ef4f78b830031d263e
This commit is contained in:
Doug Hellmann 2014-05-27 07:37:08 -07:00
parent 6c6c46ae1e
commit 1374a394e6

View File

@ -25,7 +25,13 @@ then
echo "PROJECT: The project name (eg 'nova')"
exit 1
else
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
if [ -f /usr/local/jenkins/slave_scripts/select-mirror.sh ]
then
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
else
echo "No mirror script /usr/local/jenkins/slave_scripts/select-mirror.sh,"
echo "assuming local environment is configured properly."
fi
fi
mkdir -p .test