Merge "Add Puppet-Version: !X skip to apply tests"

This commit is contained in:
Zuul 2019-04-16 23:53:10 +00:00 committed by Gerrit Code Review
commit ee4aa495c7
1 changed files with 7 additions and 2 deletions

View File

@ -49,8 +49,13 @@ fi
FOUND=0
for f in `find applytest -name 'puppetapplytest*' -print` ; do
if grep -q "Node-OS: $CODENAME" $f; then
cat applytest/head $f > $f.final
FOUND=1
if grep -q "Puppet-Version: !${PUPPET_VERSION}" $f; then
echo "Skipping $f due to unsupported puppet version"
continue
else
cat applytest/head $f > $f.final
FOUND=1
fi
fi
done