Use oslo_debug_helper and remove our own version

With the latest version of oslotest, we can now take advantage
of a common oslo_debug_helper script.
We can now remove our own homebrewed version, minor changes to
tox.ini were needed.

Change-Id: Ibd4317e8b1a9e38c9f4ef839352b74f14e9ddcfa
This commit is contained in:
Steve Martinelli 2014-09-09 10:23:00 -04:00
parent a7cf24e167
commit 935232cc7d
2 changed files with 1 additions and 18 deletions

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 ./ ./ceilometer/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

@ -65,7 +65,7 @@ commands = {posargs}
[testenv:debug]
commands =
bash -x {toxinidir}/setup-test-env.sh {toxinidir}/tools/debug_helper.sh {posargs}
bash -x {toxinidir}/setup-test-env-mysql.sh oslo_debug_helper {posargs}
[flake8]
# H305 imports not grouped correctly