@@ -86,7 +86,7 @@ def wait_launch(rp_client: RP) -> bool:
8686 :param rp_client: Instance of the ReportPortalService class
8787 """
8888 timeout = time .time () + LAUNCH_WAIT_TIMEOUT
89- while not rp_client .launch_id :
89+ while not rp_client .launch_uuid :
9090 if time .time () > timeout :
9191 return False
9292 time .sleep (1 )
@@ -531,7 +531,11 @@ def add_shared_option(name, help_str, default=None, action="store"):
531531 )
532532 add_shared_option (
533533 name = "rp_launch_id" ,
534- help_str = "Use already existing launch-id. The plugin won't control " "the Launch status" ,
534+ help_str = "DEPRECATED: Use already existing launch-id. The plugin won't control the Launch status" ,
535+ )
536+ add_shared_option (
537+ name = "rp_launch_uuid" ,
538+ help_str = "Use already existing launch UUID. The plugin won't control the Launch status" ,
535539 )
536540 add_shared_option (
537541 name = "rp_launch_description" ,
@@ -590,8 +594,16 @@ def add_shared_option(name, help_str, default=None, action="store"):
590594 parser .addini ("rp_oauth_client_secret" , type = "args" , help = "OAuth 2.0 client secret" )
591595 parser .addini ("rp_oauth_scope" , type = "args" , help = "OAuth 2.0 access token scope" )
592596
593- parser .addini ("rp_launch_attributes" , type = "args" , help = "Launch attributes, i.e Performance Regression" )
594- parser .addini ("rp_tests_attributes" , type = "args" , help = "Attributes for all tests items, e.g. Smoke" )
597+ rp_launch_attributes_help_str = "Launch attributes, i.e Performance Regression."
598+ parser .addini ("rp_launch_attributes" , type = "args" , help = rp_launch_attributes_help_str )
599+ group .addoption (
600+ "--rp-launch-attributes" , dest = "rp_launch_attributes" , help = rp_launch_attributes_help_str , nargs = "+"
601+ )
602+
603+ rp_test_attributes_help_str = "Attributes for all tests items, e.g. Smoke."
604+ parser .addini ("rp_tests_attributes" , type = "args" , help = rp_test_attributes_help_str )
605+ group .addoption ("--rp-tests-attributes" , dest = "rp_tests_attributes" , help = rp_test_attributes_help_str , nargs = "+" )
606+
595607 parser .addini ("rp_log_batch_size" , default = "20" , help = "Size of batch log requests in async mode" )
596608 parser .addini (
597609 "rp_log_batch_payload_limit" ,
0 commit comments