summaryrefslogtreecommitdiff
path: root/run_tests.sh
diff options
context:
space:
mode:
authorJamie Lennox <jamielennox@redhat.com>2013-09-23 12:07:40 +1000
committerJamie Lennox <jamielennox@redhat.com>2013-09-24 12:34:17 +1000
commit0a18d8bbdfdfcec920697a7c90137922f156f6c9 (patch)
tree4d6940867be06c5553677a64fc39d2b5b918e4ed /run_tests.sh
parent7f0df0ab4c0e80837ccfd1b98bda21a413cbbc4a (diff)
downloadpython-keystoneclient-0a18d8bbdfdfcec920697a7c90137922f156f6c9.tar.gz
Move tests in keystoneclient
This is the suggested location for tests and is adopted by most projects. As part of this change relative imports to package imports. Fix all the test running and coverage code to point to the new location. Change-Id: I01264aed14f396ab9a7242e3e72b71e1bc332675
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/run_tests.sh b/run_tests.sh
index cd11fcf..ecfb325 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -81,7 +81,7 @@ function run_tests {
if [ "$testropts" = "" ] && [ "$testrargs" = "" ]; then
# Default to running all tests if specific test is not
# provided.
- testrargs="discover ./tests"
+ testrargs="discover ./keystoneclient/tests"
fi
${wrapper} python -m testtools.run $testropts $testrargs
@@ -112,7 +112,7 @@ function run_tests {
echo "Generating coverage report in covhtml/"
# Don't compute coverage for common code, which is tested elsewhere
${wrapper} coverage combine
- ${wrapper} coverage html --include='keystoneclient/*' --omit='keystoneclient/openstack/common/*' -d covhtml -i
+ ${wrapper} coverage html -d covhtml -i
fi
return $RESULT
@@ -127,7 +127,7 @@ function copy_subunit_log {
function run_flake8 {
echo "Running flake8 ..."
- srcfiles="keystoneclient tests"
+ srcfiles="keystoneclient"
# Just run Flake8 in current environment
${wrapper} flake8 ${srcfiles}
}