Use bashate to run_tests.sh
Change-Id: I542cae190845cbb98c030423aa6e2a747dc07263
This commit is contained in:
parent
7541fda1db
commit
e00db6a064
|
@ -93,8 +93,7 @@ function run_tests {
|
|||
|
||||
function run_flake8 {
|
||||
FLAGS=--show-pep8
|
||||
if [ $# -gt 0 ] && [ 'short' == ''$1 ]
|
||||
then
|
||||
if [ $# -gt 0 ] && [ 'short' == ''$1 ]; then
|
||||
FLAGS=''
|
||||
fi
|
||||
|
||||
|
@ -104,8 +103,7 @@ function run_flake8 {
|
|||
${wrapper} flake8 $FLAGS | tee pep8.txt
|
||||
}
|
||||
|
||||
if [ $never_venv -eq 0 ]
|
||||
then
|
||||
if [ $never_venv -eq 0 ]; then
|
||||
# Remove the virtual environment if --force used
|
||||
if [ $force -eq 1 ]; then
|
||||
echo "Cleaning virtualenv..."
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -74,7 +74,7 @@ commands =
|
|||
flake8 {posargs}
|
||||
# Run bash8 during pep8 runs to ensure violations are caught by
|
||||
# the check and gate queues
|
||||
bashate examples/pki/gen_pki.sh
|
||||
bashate run_tests.sh examples/pki/gen_pki.sh
|
||||
# Check that .po and .pot files are valid.
|
||||
bash -c "find keystone -type f -regex '.*\.pot?' -print0| \
|
||||
xargs -0 -n 1 msgfmt --check-format -o /dev/null"
|
||||
|
|
Loading…
Reference in New Issue