Enable debug log capturing in tests

It uncovered an error in log template substitution, fixed it.

Change-Id: Ic0ddbc05f88b19d9162a02fe884a88b32814f08e
This commit is contained in:
Yuriy Taraday 2016-09-03 08:57:38 +03:00
parent ba6efbca4d
commit 9324199cb9
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,8 @@
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
OS_DEBUG=${OS_DEBUG:-1} \
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -59,8 +59,7 @@ def _cleanup_servers(session):
if server_list:
LOG.warning("Some instances were not removed, trying to force delete")
for server in server_list:
LOG.info('Force deleting instance %s (%s)',
(server.name, server.id))
LOG.info('Force deleting instance %s (%s)', server.name, server.id)
nova.servers.force_delete(server.id)
server_list = _wait_until_empty(
60, None, nova.servers.list, search_opts={"all_tenants": True})