Skip to content

Commit c5d3d9b

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add wrapper around ostestr"
2 parents e83a094 + ef595fc commit c5d3d9b

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# This is a script that runs ostestr with the openrc OS_ variables sourced.
4+
# Do not run this script unless you know what you're doing.
5+
# For more information refer to:
6+
# https://docs.openstack.org/python-openstackclient/latest/
7+
8+
# Source environment variables to kick things off
9+
if [ -f ~stack/devstack/openrc ] ; then
10+
source ~stack/devstack/openrc admin admin
11+
fi
12+
13+
echo 'Running tests with:'
14+
env | grep OS
15+
16+
ostestr $*

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ commands =
5656
[testenv:functional]
5757
setenv = OS_TEST_PATH=./openstackclient/tests/functional
5858
passenv = OS_*
59+
# Enable this when running Zuul v3 jobs
60+
#whitelist_externals = openstackclient/tests/functional/run_ostestr.sh
61+
#commands =
62+
# {toxinidir}/openstackclient/tests/functional/run_ostestr.sh {posargs}
5963

6064
[testenv:functional-tips]
6165
setenv = OS_TEST_PATH=./openstackclient/tests/functional

0 commit comments

Comments
 (0)