Fix for generate statistic functionality

in case if test run was used repo snapshots.

Change-Id: I164ac8191f4bd902ad80e90f33e0ab3f3cafd322
Closes-Bug: #1603985
This commit is contained in:
NastyaUrlapova 2016-07-18 15:57:30 +03:00
parent cca0271060
commit b35ed149f1

View File

@ -54,8 +54,13 @@ def generate_test_plan_name(job_name, build_number):
# taken from Jenkins job build parameters # taken from Jenkins job build parameters
runner_build = Build(job_name, build_number) runner_build = Build(job_name, build_number)
milestone, iso_number, prefix = get_version(runner_build.build_data) milestone, iso_number, prefix = get_version(runner_build.build_data)
return ' '.join(filter(lambda x: bool(x), if 'snapshot' not in prefix:
(milestone, prefix, 'iso', '#' + str(iso_number)))) return ' '.join(filter(lambda x: bool(x), (milestone,
prefix, 'iso',
'#' + str(iso_number))))
else:
return ' '.join(filter(lambda x: bool(x), (milestone,
prefix)))
def get_testrail(): def get_testrail():