From f1355315560dd1eae2ea5c9ebcc0a8a338b07ed8 Mon Sep 17 00:00:00 2001 From: Ben Kero Date: Tue, 16 Feb 2016 14:29:03 -0800 Subject: [PATCH] Add ability to pass puppet args in as env var This patch will add support to run_tests.sh for adding additional environment variables. This can be useful for debugging. This is put behind a switch so the current functionality is maintaned. Change-Id: I8e5136b06299884e8b0f9a8621e9cbf28a12dd58 --- run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 8a4470550..aae9e8921 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -15,6 +15,7 @@ export SCENARIO=${SCENARIO:-scenario001} export MANAGE_REPOS=${MANAGE_REPOS:-true} +export PUPPET_ARGS=${PUPPET_ARGS:-} export SCRIPT_DIR=$(cd `dirname $0` && pwd -P) source $SCRIPT_DIR/functions @@ -40,7 +41,7 @@ else git clone git://git.openstack.org/openstack/tempest /tmp/openstack/tempest fi -PUPPET_ARGS="--detailed-exitcodes --verbose --color=false --debug" +PUPPET_ARGS="${PUPPET_ARGS} --detailed-exitcodes --verbose --color=false --debug" function run_puppet() { local manifest=$1