FAILURES=$TMPDIR/failures
-check_opinionated_shell () {
- # The purpose of this function is to avoid casual introduction of more
- # bash dependency. Please consider alternatives before committing code
- # which uses bash specific features.
-
- # Check that shell scripts are not bash opinionated (ignore comments though)
- # If you cannot avoid the use of bash, please change the EXPECTED var below.
- OBSERVED=$(grep -E '^([[:space:]]*[^#[:space:]]|#!).*bash' \
- tox.ini tools/* | wc -l)
- EXPECTED=8
- if [ ${EXPECTED} -ne ${OBSERVED} ]; then
- echo "Bash usage has been detected!" >>$FAILURES
- fi
-}
-
-
check_no_symlinks_allowed () {
# Symlinks break the package build process, so ensure that they
# do not slip in, except hidden symlinks.
}
# Add your checks here...
-check_opinionated_shell
check_no_symlinks_allowed
check_pot_files_errors
check_identical_policy_files
flake8
sh ./tools/coding-checks.sh --pylint '{posargs}'
neutron-db-manage check_migration
-whitelist_externals = sh
+whitelist_externals =
+ sh
+ bash
[testenv:cover]
commands =