Fixed discover-config-tempest to read default-overrides.conf from

tempest-workspace/etc

* As tempest init <tempest workspace> dumpes all the config files in
  tempest-workspace/etc. so discover-config-tempest should read the
  default-overrides.conf from there otherwise user needs to pass an
  argument --deployer-input <path to default-overrides.conf> file.

* Remove python shebang from config-tempest.py

Fixes: https://github.com/redhat-openstack/python-tempestconf/issues/4
Change-Id: I68eb6e57f0b14da78e2d70a86aca106b2a34aebe
This commit is contained in:
Chandan Kumnar 2017-01-27 16:03:21 +05:30
parent 00b1a51bd6
commit 51e8a6d5b2
2 changed files with 6 additions and 6 deletions

View File

@ -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'

View File

@ -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