fixing run_tests - typo, missing requires
This commit is contained in:
parent
176861eafb
commit
36e266e7ff
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,6 +2,8 @@
|
|||||||
*.swp
|
*.swp
|
||||||
.coverage
|
.coverage
|
||||||
coverage.xml
|
coverage.xml
|
||||||
|
pep8.txt
|
||||||
|
pylint.txt
|
||||||
reports
|
reports
|
||||||
django-openstack/.installed.cfg
|
django-openstack/.installed.cfg
|
||||||
django-openstack/bin
|
django-openstack/bin
|
||||||
|
@ -15,6 +15,8 @@ PasteDeploy
|
|||||||
sqlalchemy-migrate
|
sqlalchemy-migrate
|
||||||
eventlet
|
eventlet
|
||||||
xattr
|
xattr
|
||||||
|
pep8
|
||||||
|
pylint
|
||||||
coverage
|
coverage
|
||||||
|
|
||||||
bzr+https://launchpad.net/glance#egg=glance
|
bzr+https://launchpad.net/glance#egg=glance
|
||||||
|
17
run_tests.sh
17
run_tests.sh
@ -37,7 +37,7 @@ function process_option {
|
|||||||
function run_pylint {
|
function run_pylint {
|
||||||
echo "Running pylint ..."
|
echo "Running pylint ..."
|
||||||
PYLINT_INCLUDE="openstack-dashboard/dashboard django-openstack/django_openstack"
|
PYLINT_INCLUDE="openstack-dashboard/dashboard django-openstack/django_openstack"
|
||||||
${wrapper} pylint --rcfile=.pylintrc -f parseable $PYLINT_INCLUDE > pylint.txt
|
${django_wrapper} pylint --rcfile=.pylintrc -f parseable $PYLINT_INCLUDE > pylint.txt
|
||||||
CODE=$?
|
CODE=$?
|
||||||
grep Global -A2 pylint.txt
|
grep Global -A2 pylint.txt
|
||||||
if [ $CODE -lt 32 ]
|
if [ $CODE -lt 32 ]
|
||||||
@ -53,7 +53,8 @@ function run_pep8 {
|
|||||||
PEP8_EXCLUDE=vcsversion.py
|
PEP8_EXCLUDE=vcsversion.py
|
||||||
PEP8_OPTIONS="--exclude=$PEP8_EXCLUDE --repeat --show-pep8 --show-source"
|
PEP8_OPTIONS="--exclude=$PEP8_EXCLUDE --repeat --show-pep8 --show-source"
|
||||||
PEP8_INCLUDE="openstack-dashboard/dashboard django-openstack/django_openstack"
|
PEP8_INCLUDE="openstack-dashboard/dashboard django-openstack/django_openstack"
|
||||||
${wrapper} pep8 $PEP8_OPTIONS $PEP8_INCLUDE > pep8.txt
|
echo "${django_wrapper} pep8 $PEP8_OPTIONS $PEP8_INCLUDE > pep8.txt"
|
||||||
|
${django_wrapper} pep8 $PEP8_OPTIONS $PEP8_INCLUDE > pep8.txt
|
||||||
#perl string strips out the [ and ] characters
|
#perl string strips out the [ and ] characters
|
||||||
#${wrapper} pep8 $PEP8_OPTIONS $PEP8_INCLUDE | perl -ple 's/: ([WE]\d+)/: [$1]/' > pep8.txt
|
#${wrapper} pep8 $PEP8_OPTIONS $PEP8_INCLUDE | perl -ple 's/: ([WE]\d+)/: [$1]/' > pep8.txt
|
||||||
}
|
}
|
||||||
@ -91,7 +92,9 @@ then
|
|||||||
else
|
else
|
||||||
if [ $always_venv -eq 1 ]; then
|
if [ $always_venv -eq 1 ]; then
|
||||||
# Automatically install the virtualenv
|
# Automatically install the virtualenv
|
||||||
|
cd openstack-dashboard
|
||||||
python tools/install_venv.py
|
python tools/install_venv.py
|
||||||
|
cd ..
|
||||||
django_wrapper="${django_with_venv}"
|
django_wrapper="${django_with_venv}"
|
||||||
dashboard_wrapper="${dashboard_with_venv}"
|
dashboard_wrapper="${dashboard_with_venv}"
|
||||||
else
|
else
|
||||||
@ -99,7 +102,9 @@ then
|
|||||||
read use_ve
|
read use_ve
|
||||||
if [ "x$use_ve" = "xY" -o "x$use_ve" = "x" -o "x$use_ve" = "xy" ]; then
|
if [ "x$use_ve" = "xY" -o "x$use_ve" = "x" -o "x$use_ve" = "xy" ]; then
|
||||||
# Install the virtualenv and run the test suite in it
|
# Install the virtualenv and run the test suite in it
|
||||||
|
cd openstack-dashboard
|
||||||
python tools/install_venv.py
|
python tools/install_venv.py
|
||||||
|
cd ..
|
||||||
django_wrapper="${django_with_venv}"
|
django_wrapper="${django_with_venv}"
|
||||||
dashboard_wrapper="${dashboard_with_venv}"
|
dashboard_wrapper="${dashboard_with_venv}"
|
||||||
fi
|
fi
|
||||||
@ -135,6 +140,14 @@ function run_tests {
|
|||||||
|
|
||||||
if [ $just_pep8 -eq 1 ]; then
|
if [ $just_pep8 -eq 1 ]; then
|
||||||
run_pep8
|
run_pep8
|
||||||
|
|
||||||
|
#capability discovery
|
||||||
|
|
||||||
|
#capability discovery
|
||||||
|
#store & compare arista -> Mongo - quarantine
|
||||||
|
#SMBios probes
|
||||||
|
#store & compare arista -> Mongo - quarantine
|
||||||
|
#SMBios probes
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user