Fix OpenStack coverage tool

Can no longer rely on Zuul's layout.yml to just have str's in its
set of test names, so we coerce to str.  Somewhat hacky workaround
but works for now.

Change-Id: Ib6676f0f106345e6919e81b1ca5327c8f2e5e8dd
This commit is contained in:
Jamie Finnigan 2016-03-21 10:10:48 -07:00
parent 540ee93cc0
commit 58c2a43909
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def coverage_zuul(conf_zuul):
project_name = project['name']
for test_type in bandit_tests.keys():
for test in project.get(test_type, []):
if test.endswith('bandit'):
if str(test).endswith('bandit'):
voting = bandit_jobs.get(test, False)
bandit_tests[test_type].add((project_name, voting))
# output results