Added virtual environment to PEP8 tests
This commit is contained in:
14
run_tests.sh
14
run_tests.sh
@@ -67,14 +67,11 @@ function run_pep8 {
|
|||||||
srcfiles=`find bin -type f ! -name "nova.conf*"`
|
srcfiles=`find bin -type f ! -name "nova.conf*"`
|
||||||
srcfiles+=" `find tools/*`"
|
srcfiles+=" `find tools/*`"
|
||||||
srcfiles+=" nova setup.py plugins/xenserver/xenapi/etc/xapi.d/plugins/glance"
|
srcfiles+=" nova setup.py plugins/xenserver/xenapi/etc/xapi.d/plugins/glance"
|
||||||
pep8 --repeat --show-pep8 --show-source --exclude=vcsversion.py ${srcfiles}
|
# Just run PEP8 in current environment
|
||||||
|
${wrapper} pep8 --repeat --show-pep8 --show-source \
|
||||||
|
--exclude=vcsversion.py ${srcfiles}
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $just_pep8 -eq 1 ]; then
|
|
||||||
run_pep8
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
NOSETESTS="python run_tests.py $noseargs"
|
NOSETESTS="python run_tests.py $noseargs"
|
||||||
|
|
||||||
if [ $never_venv -eq 0 ]
|
if [ $never_venv -eq 0 ]
|
||||||
@@ -103,6 +100,11 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $just_pep8 -eq 1 ]; then
|
||||||
|
run_pep8
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
run_tests || exit
|
run_tests || exit
|
||||||
|
|
||||||
# Also run pep8 if no options were provided.
|
# Also run pep8 if no options were provided.
|
||||||
|
|||||||
Reference in New Issue
Block a user