Do not disable strict_variables check
Starting from 8, puppet requires that all variables are defined in advance. Enable the check to detect any potential problems. Change-Id: Iffca5cbf2719e98d7f188f97871fb29caac37a8e Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -10,13 +10,6 @@
|
|||||||
if [ "{{ rspec_puppet_version }}" != "latest" ]; then
|
if [ "{{ rspec_puppet_version }}" != "latest" ]; then
|
||||||
export RSPEC_PUPPET_VERSION='{{ rspec_puppet_version }}'
|
export RSPEC_PUPPET_VERSION='{{ rspec_puppet_version }}'
|
||||||
fi
|
fi
|
||||||
# NOTE(aschultz): rspec-puppet 2.4+ has strict variables enabled
|
|
||||||
# which causes test failures. The problem is that the puppet modules
|
|
||||||
# have never worked with strict_variables = true due to backwards
|
|
||||||
# compatibility & import ordering. Since this has not been true,
|
|
||||||
# lets disable it in the unit testing for now. Perhaps some day
|
|
||||||
# we will be able to turn this back to true.
|
|
||||||
export STRICT_VARIABLES=no
|
|
||||||
./run_unit_tests.sh
|
./run_unit_tests.sh
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
chdir: '{{ ansible_user_dir }}/workspace'
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
|||||||
@@ -9,13 +9,6 @@
|
|||||||
if [ "{{ rspec_puppet_version }}" != "latest" ]; then
|
if [ "{{ rspec_puppet_version }}" != "latest" ]; then
|
||||||
export RSPEC_PUPPET_VERSION='{{ rspec_puppet_version }}'
|
export RSPEC_PUPPET_VERSION='{{ rspec_puppet_version }}'
|
||||||
fi
|
fi
|
||||||
# NOTE(aschultz): rspec-puppet 2.4+ has strict variables enabled
|
|
||||||
# which causes test failures. The problem is that the puppet modules
|
|
||||||
# have never worked with strict_variables = true due to backwards
|
|
||||||
# compatibility & import ordering. Since this has not been true,
|
|
||||||
# lets disable it in the unit testing for now. Perhaps some day
|
|
||||||
# we will be able to turn this back to true.
|
|
||||||
export STRICT_VARIABLES=no
|
|
||||||
mkdir .bundled_gems
|
mkdir .bundled_gems
|
||||||
export GEM_HOME=`pwd`/.bundled_gems
|
export GEM_HOME=`pwd`/.bundled_gems
|
||||||
export GEM_BIN_DIR=$GEM_HOME/bin
|
export GEM_BIN_DIR=$GEM_HOME/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user