From 934a9a30bf782c158f40c1af577ca7071459a66b Mon Sep 17 00:00:00 2001 From: Artem Panchenko Date: Tue, 24 May 2016 12:02:41 +0300 Subject: [PATCH] Add '--live' option for test cases uploader script In the script for results reporting we have an option which allows to use latest started jenkins job (tests runner) build while getting tests data. Added appropriate option to the cases uploader script to prevent 'not found' errors when new test threads are just added. Change-Id: I35d60155772f7db76a5c1a2515e69effbbbaf0f5 --- fuelweb_test/testrail/upload_cases_description.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fuelweb_test/testrail/upload_cases_description.py b/fuelweb_test/testrail/upload_cases_description.py index efe5b0d0b..0b64946de 100644 --- a/fuelweb_test/testrail/upload_cases_description.py +++ b/fuelweb_test/testrail/upload_cases_description.py @@ -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,