Permalink
Browse files

chore(base-nrpe): Improve lint-and-test.sh output.

Co-authored-by: Narayan O'Hanlon <narayanohanlon@gmail.com>
Co-authored-by: Stephen Geller <stephen.gb.geller+github@gmail.com>
  • Loading branch information...
3 people committed Jan 18, 2019
1 parent 1f69536 commit 6afa2c43451224e276a2d88415ee883ee75d9ea9
Showing with 6 additions and 3 deletions.
  1. +6 −3 lint-and-test.sh
@@ -2,6 +2,9 @@

set -e

BOLD='\e[1m'
NC='\033[0m'

function lint_files() {
find modules/ -name '*.pp' | xargs puppet-lint \
--with-filename \
@@ -10,10 +13,10 @@ function lint_files() {

function test_modules() {
for MODULE in $(ls modules); do
echo "Running tests for ${MODULE}"
pushd modules/${MODULE}
echo -e "\nRunning tests for ${BOLD}${MODULE}${NC}"
pushd modules/${MODULE} > /dev/null
pdk test unit
popd
popd > /dev/null
done
}

0 comments on commit 6afa2c4

Please sign in to comment.