Merge "Making the apply test easier to read"

This commit is contained in:
Jenkins 2015-01-25 14:13:06 +00:00 committed by Gerrit Code Review
commit cef96469f1

View File

@ -93,9 +93,10 @@ sudo mv /tmp/hosts /etc/hosts
sudo mkdir -p /etc/puppet/environments/production sudo mkdir -p /etc/puppet/environments/production
sudo touch /etc/puppet/environments/production/environment.conf sudo touch /etc/puppet/environments/production/environment.conf
sudo mkdir -p /var/run/puppet sudo mkdir -p /var/run/puppet
sudo cp /etc/hiera.yaml /etc/puppet/hiera.yaml
sudo -E bash -x ./install_modules.sh sudo -E bash -x ./install_modules.sh
echo "Running apply test on these hosts:" echo "Running apply test on these hosts:"
find applytest -name 'puppetapplytest*.final' -print0 find applytest -name 'puppetapplytest*.final' -print0
find applytest -name 'puppetapplytest*.final' -print0 | \ find applytest -name 'puppetapplytest*.final' -print0 | \
xargs -0 -P $(nproc) -n 1 -I filearg \ xargs -0 -P $(nproc) -n 1 -I filearg \
sudo puppet apply --modulepath=${MODULE_PATH} --noop --verbose --debug filearg > /dev/null sudo puppet apply --modulepath=${MODULE_PATH} --color=false --noop --verbose --debug filearg > /dev/null