From 1374a394e6248f7f8eaa54a35cad3328e6000a16 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Tue, 27 May 2014 07:37:08 -0700 Subject: [PATCH] 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 --- tools/run-layout.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/run-layout.sh b/tools/run-layout.sh index 7657b7dc3d..eb8f10797d 100755 --- a/tools/run-layout.sh +++ b/tools/run-layout.sh @@ -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