refstack-client test failure with test-list option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
refstack |
Fix Released
|
Undecided
|
Catherine Diep |
Bug Description
refstack-client test fails when testing with the test-list option. To fix this issue, refstack-client needs to initialize the environment variables "TEMPEST_
(.venv)
2015-11-15 14:47:35,467 refstack_client:126 DEBUG The .testrepository
2015-11-15 14:47:35,589 refstack_client:313 INFO Starting Tempest test...
2015-11-15 14:47:35,589 refstack_client:323 INFO Normalizing test list...
2015-11-15 14:47:36.149 24769 INFO tempest [-] Using tempest config file /etc/tempest/
Non-zero exit code (2) from test listing.
2015-11-15 14:47:37,018 refstack_
Traceback (most recent call last):
File "./refstack-
getattr(test, args.func)()
File "/home/
list_file = parser.
File "/home/
tempest_
File "/home/
' '.join(cmd))
subprocess.
With test-list option, refstack-client will first normalize the user input test list to the test list from the currently installed Tempest. There seems to be some non RefStack updates in the recent releases that "testr list-tests" would now require a valid tempest.conf for test listing. The path of the tempest.conf file is determined by the .tempest/
def __init__(self, parse_conf=True, config_path=None):
if config_path:
path = config_path
else:
# Environment variables override defaults...
path = os.path.
if not os.path.
path = failsafe_path
# only parse the config file if we expect one to exist. This is needed
# to remove an issue with the config file up to date checker.
if parse_conf:
if os.path.
else:
LOG = logging.
if parse_conf:
Changed in refstack: | |
assignee: | nobody → Catherine Diep (cdiep) |
description: | updated |
Changed in refstack: | |
status: | Fix Committed → Fix Released |
This bug was fixed with https:/ /review. openstack. org/#/c/ 247179/ merged on Nov 20, 2015