Update glance to evoque in run_test.sh

Change-Id: Ia025fa224bea18c50bc21156f5551b1ef32ef173
This commit is contained in:
XiaBing Yao 2015-08-13 07:49:08 -04:00
parent f29de1ba10
commit e8fb69cbc1
1 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ set -eu
function usage {
echo "Usage: $0 [OPTION]..."
echo "Run Glance's test suite(s)"
echo "Run Evoque's test suite(s)"
echo ""
echo " -V, --virtual-env Always use virtualenv. Install automatically if not present"
echo " -N, --no-virtual-env Don't use virtualenv. Run tests in local environment"
@ -114,7 +114,7 @@ function run_tests {
if [ "$testropts" = "" ] && [ "$testrargs" = "" ]; then
# Default to running all tests if specific test is not
# provided.
testrargs="discover ./glance/tests"
testrargs="discover ./evoque/tests"
fi
${wrapper} python -m testtools.run $testropts $testrargs
@ -134,7 +134,7 @@ function run_tests {
set +e
testrargs=`echo "$testrargs" | sed -e's/^\s*\(.*\)\s*$/\1/'`
TESTRTESTS="$TESTRTESTS --testr-args='--subunit --concurrency $concurrency $testropts $testrargs'"
if [ setup.cfg -nt glance.egg-info/entry_points.txt ]
if [ setup.cfg -nt evoque.egg-info/entry_points.txt ]
then
${wrapper} python setup.py egg_info
fi
@ -155,7 +155,7 @@ function run_tests {
if [ $coverage -eq 1 ]; then
echo "Generating coverage report in covhtml/"
${wrapper} coverage combine
${wrapper} coverage html --include='glance/*' -d covhtml -i
${wrapper} coverage html --include='evoque/*' -d covhtml -i
fi
return $RESULT