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:
parent
925ebac30c
commit
934a9a30bf
@ -370,12 +370,17 @@ def main():
|
|||||||
dest='check_one_section', default=False,
|
dest='check_one_section', default=False,
|
||||||
help='Look for existing test case only in specified '
|
help='Look for existing test case only in specified '
|
||||||
'section of test suite.')
|
'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()
|
(options, _) = parser.parse_args()
|
||||||
|
|
||||||
if options.verbose:
|
if options.verbose:
|
||||||
logger.setLevel(DEBUG)
|
logger.setLevel(DEBUG)
|
||||||
|
|
||||||
|
if options.live_upload and options.build_number == 'latest':
|
||||||
|
options.build_number = 'latest_started'
|
||||||
|
|
||||||
project = TestRailProject(
|
project = TestRailProject(
|
||||||
url=TestRailSettings.url,
|
url=TestRailSettings.url,
|
||||||
user=TestRailSettings.user,
|
user=TestRailSettings.user,
|
||||||
|
Loading…
Reference in New Issue
Block a user