Fixed name for test run for Tempest results
We are going to use new name pattern for test runs, need to use 'kilo' prefix for reports. Change-Id: I5a91546ab6c77bc53267bb2a12dafc2bf1bb5a50 Closes-Bug: #1506779
This commit is contained in:
parent
a6414807fe
commit
198571d033
@ -154,6 +154,9 @@ def main():
|
||||
parser.add_option('-t', '--tests-in-progress',
|
||||
dest='tests_in_progress', action='store_true',
|
||||
help='Mark all Tempest tests as "in progress"')
|
||||
parser.add_option('--prefix',
|
||||
dest='prefix', action='store_true', default='',
|
||||
help='Add some prefix to test run')
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
@ -191,9 +194,13 @@ def main():
|
||||
|
||||
# STEP #3
|
||||
# Create new test plan (or find existing)
|
||||
name = '{0} {1}iso #{2}'
|
||||
if options.prefix is not '':
|
||||
options.prefix += ' '
|
||||
|
||||
milestone = client.get_milestone_by_name(TestRailSettings.milestone)
|
||||
test_plan_name = '{0} iso #{1}'.format(milestone['name'],
|
||||
options.iso_number)
|
||||
test_plan_name = name.format(milestone['name'], options.prefix,
|
||||
options.iso_number)
|
||||
LOG.info('Test plan name is "{0}".'.format(test_plan_name))
|
||||
|
||||
LOG.info('Trying to find test plan "{0}"...'.format(test_plan_name))
|
||||
|
Loading…
Reference in New Issue
Block a user