diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-11-16 17:41:33 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-11-16 17:41:33 +0000 |
| commit | b4ca5cc9c174494a392ff70f5631ac51e0103e30 (patch) | |
| tree | 63c2530435726e89436d4dd88e491907c7850649 /functional/common | |
| parent | f5a2811b6546007eac055151e320005c0d4410d0 (diff) | |
| parent | 126b2c543617866e9e1ea45ef9c5770ce5f5dda9 (diff) | |
| download | python-openstackclient-b4ca5cc9c174494a392ff70f5631ac51e0103e30.tar.gz | |
Merge "Add an API example base and functional test base"
Diffstat (limited to 'functional/common')
| -rw-r--r-- | functional/common/test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/functional/common/test.py b/functional/common/test.py index c1bb0b10..464844fa 100644 --- a/functional/common/test.py +++ b/functional/common/test.py @@ -10,6 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. +import os import re import shlex import subprocess @@ -19,6 +20,11 @@ import six from functional.common import exceptions +COMMON_DIR = os.path.dirname(os.path.abspath(__file__)) +FUNCTIONAL_DIR = os.path.normpath(os.path.join(COMMON_DIR, '..')) +ROOT_DIR = os.path.normpath(os.path.join(FUNCTIONAL_DIR, '..')) +EXAMPLE_DIR = os.path.join(ROOT_DIR, 'examples') + def execute(cmd, action, flags='', params='', fail_ok=False, merge_stderr=False): |
