Merge "Add wrapper around ostestr"
This commit is contained in:
commit
c5d3d9b318
16
openstackclient/tests/functional/run_ostestr.sh
Executable file
16
openstackclient/tests/functional/run_ostestr.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This is a script that runs ostestr with the openrc OS_ variables sourced.
|
||||||
|
# Do not run this script unless you know what you're doing.
|
||||||
|
# For more information refer to:
|
||||||
|
# https://docs.openstack.org/python-openstackclient/latest/
|
||||||
|
|
||||||
|
# Source environment variables to kick things off
|
||||||
|
if [ -f ~stack/devstack/openrc ] ; then
|
||||||
|
source ~stack/devstack/openrc admin admin
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 'Running tests with:'
|
||||||
|
env | grep OS
|
||||||
|
|
||||||
|
ostestr $*
|
4
tox.ini
4
tox.ini
@ -56,6 +56,10 @@ commands =
|
|||||||
[testenv:functional]
|
[testenv:functional]
|
||||||
setenv = OS_TEST_PATH=./openstackclient/tests/functional
|
setenv = OS_TEST_PATH=./openstackclient/tests/functional
|
||||||
passenv = OS_*
|
passenv = OS_*
|
||||||
|
# Enable this when running Zuul v3 jobs
|
||||||
|
#whitelist_externals = openstackclient/tests/functional/run_ostestr.sh
|
||||||
|
#commands =
|
||||||
|
# {toxinidir}/openstackclient/tests/functional/run_ostestr.sh {posargs}
|
||||||
|
|
||||||
[testenv:functional-tips]
|
[testenv:functional-tips]
|
||||||
setenv = OS_TEST_PATH=./openstackclient/tests/functional
|
setenv = OS_TEST_PATH=./openstackclient/tests/functional
|
||||||
|
Loading…
Reference in New Issue
Block a user