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 {
|
function run_flake8 {
|
||||||
FLAGS=--show-pep8
|
FLAGS=--show-pep8
|
||||||
if [ $# -gt 0 ] && [ 'short' == ''$1 ]
|
if [ $# -gt 0 ] && [ 'short' == ''$1 ]; then
|
||||||
then
|
|
||||||
FLAGS=''
|
FLAGS=''
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -104,8 +103,7 @@ function run_flake8 {
|
||||||
${wrapper} flake8 $FLAGS | tee pep8.txt
|
${wrapper} flake8 $FLAGS | tee pep8.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $never_venv -eq 0 ]
|
if [ $never_venv -eq 0 ]; then
|
||||||
then
|
|
||||||
# Remove the virtual environment if --force used
|
# Remove the virtual environment if --force used
|
||||||
if [ $force -eq 1 ]; then
|
if [ $force -eq 1 ]; then
|
||||||
echo "Cleaning virtualenv..."
|
echo "Cleaning virtualenv..."
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -74,7 +74,7 @@ commands =
|
||||||
flake8 {posargs}
|
flake8 {posargs}
|
||||||
# Run bash8 during pep8 runs to ensure violations are caught by
|
# Run bash8 during pep8 runs to ensure violations are caught by
|
||||||
# the check and gate queues
|
# 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.
|
# Check that .po and .pot files are valid.
|
||||||
bash -c "find keystone -type f -regex '.*\.pot?' -print0| \
|
bash -c "find keystone -type f -regex '.*\.pot?' -print0| \
|
||||||
xargs -0 -n 1 msgfmt --check-format -o /dev/null"
|
xargs -0 -n 1 msgfmt --check-format -o /dev/null"
|
||||||
|
|
Loading…
Reference in New Issue