diff --git a/config_tempest/config_tempest.py b/config_tempest/config_tempest.py index 9b6a776c..79ffc7de 100755 --- a/config_tempest/config_tempest.py +++ b/config_tempest/config_tempest.py @@ -1,6 +1,4 @@ -#!/usr/bin/env python - -# Copyright 2014 Red Hat, Inc. +# Copyright 2016 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may @@ -61,9 +59,11 @@ from tempest.lib.services.network import networks_client LOG = logging.getLogger(__name__) LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' -TEMPEST_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) +# Get the current tempest workspace path +TEMPEST_WORKSPACE = os.getcwd() -DEFAULTS_FILE = os.path.join(TEMPEST_DIR, "etc", "default-overrides.conf") +DEFAULTS_FILE = os.path.join(TEMPEST_WORKSPACE, "etc", + "default-overrides.conf") DEFAULT_IMAGE = ("http://download.cirros-cloud.net/0.3.4/" "cirros-0.3.4-x86_64-disk.img") DEFAULT_IMAGE_FORMAT = 'qcow2' diff --git a/setup.cfg b/setup.cfg index b211dff3..45de486a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,7 +28,7 @@ data_files = [entry_points] console_scripts = - discover-tempest-config = config_tempest.config_tempest:main + discover-tempest-config = config_tempest.config_tempest:main [build_sphinx] source-dir = doc/source