Merge "tests: ensure gabbi live test fail"

This commit is contained in:
Jenkins 2015-08-01 16:45:25 +00:00 committed by Gerrit Code Review
commit 43f146230d
2 changed files with 3 additions and 0 deletions

View File

@ -44,3 +44,5 @@ def load_tests(loader, tests, pattern):
host=parsed_url.hostname,
port=port,
prefix=prefix)
elif os.getenv('GABBI_LIVE_FAIL_IF_NO_TEST'):
raise RuntimeError('AODH_SERVICE_URL is not set')

View File

@ -36,6 +36,7 @@ commands =
setenv = VIRTUAL_ENV={envdir}
EVENTLET_NO_GREENDNS=yes
OS_TEST_PATH=aodh/tests/functional/
GABBI_LIVE_FAIL_IF_NO_TEST=1
passenv = AODH_*
commands =
bash -x {toxinidir}/run-functional-tests.sh "{posargs}"