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
This commit is contained in:
Artem Panchenko 2016-05-24 12:02:41 +03:00
parent 925ebac30c
commit 934a9a30bf

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,