Merge "Add '--live' option for test cases uploader script" into stable/mitaka

This commit is contained in:
Jenkins 2016-05-26 14:25:20 +00:00 committed by Gerrit Code Review
commit 390fc1b2d0

View File

@ -370,12 +370,17 @@ def main():
dest='check_one_section', default=False,
help='Look for existing test case only in specified '
'section of test suite.')
parser.add_option("-l", "--live", dest="live_upload", action="store_true",
help="Get tests results from running swarm")
(options, _) = parser.parse_args()
if options.verbose:
logger.setLevel(DEBUG)
if options.live_upload and options.build_number == 'latest':
options.build_number = 'latest_started'
project = TestRailProject(
url=TestRailSettings.url,
user=TestRailSettings.user,