From ace36b5ad9c94e19555acb7073c38bb332bd936f Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 12 Feb 2018 16:27:31 +0800 Subject: [PATCH] Switch puppet vertion to 4.8 for unit test The latest puppet version of running unit test is 5.3.4. This will be error[1]. So fix the puppet version. [1]http://logs.openstack.org/51/543351/1/check/legacy-puppet-openstack-libraries-puppet-unit-centos-7/a4f185d/job-output.txt.gz#_2018-02-12_07_04_37_036841 Change-Id: I3d1f5a28abffe88aa943efa1dac13d2540ad5edb --- run_unit_tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run_unit_tests.sh b/run_unit_tests.sh index a93eb3a..f456146 100755 --- a/run_unit_tests.sh +++ b/run_unit_tests.sh @@ -15,6 +15,9 @@ export SCRIPT_DIR=$(cd `dirname $0` && pwd -P) source $SCRIPT_DIR/functions +if [ "4.8" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 4.8.0' +fi install_gems