Merge "Use oslo_debug_helper and remove our own version"

This commit is contained in:
Jenkins 2014-09-13 07:18:09 +00:00 committed by Gerrit Code Review
commit ace35a4788
3 changed files with 3 additions and 22 deletions

View File

@ -31,7 +31,7 @@ fixtures>=0.3.14
lxml>=2.3
# mock object framework
mock>=1.0
oslotest
oslotest>=1.1.0.0a2
# required to build documentation
sphinx>=1.1.2,!=1.2.0,<1.3
# test wsgi apps without starting an http server

View File

@ -1,17 +0,0 @@
#!/bin/bash
TMP_DIR=`mktemp -d` || exit 1
trap "rm -rf $TMP_DIR" EXIT
ALL_TESTS=$TMP_DIR/all_tests
TESTS_TO_RUN=$TMP_DIR/ks_to_run
python -m testtools.run discover -t ./ ./keystone/tests --list > $ALL_TESTS
if [ "$1" ]; then
grep "$1" < $ALL_TESTS > $TESTS_TO_RUN
else
mv $ALL_TESTS $TESTS_TO_RUN
fi
STANDARD_THREADS=1 python -m testtools.run discover --load-list $TESTS_TO_RUN

View File

@ -76,7 +76,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 tools/debug_helper.sh
bashate examples/pki/gen_pki.sh
# Check that .po and .pot files are valid.
# NOTE(jaegerandi): We search for files ending with '.po' or '.pot'.
# The regex '.*\.pot?' does not work on OS X and we assume there are no
@ -94,9 +94,7 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
commands = {posargs}
[testenv:debug]
commands =
{toxinidir}/tools/debug_helper.sh {posargs}
commands = oslo_debug_helper.sh {posargs}
[flake8]
filename= *.py,keystone-*