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 committed by Nastya Urlapova
parent f5cbafa6fc
commit 4d79652ad7

View File

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