@@ -77,7 +77,7 @@ def pytest_sessionstart(session):
7777 uuid = getenv ('RP_UUID' ) or session .config .getini ('rp_uuid' ),
7878 log_batch_size = int (session .config .getini ('rp_log_batch_size' )),
7979 ignore_errors = bool (session .config .getini ('rp_ignore_errors' )),
80- custom_launch = session .config .getini ( ' rp_launch_id' ) or None ,
80+ custom_launch = session .config .option . rp_launch_id or None ,
8181 ignored_attributes = session .config .getini (
8282 'rp_ignore_attributes' ),
8383 verify_ssl = session .config .getini ('rp_verify_ssl' ),
@@ -92,7 +92,7 @@ def pytest_sessionstart(session):
9292
9393 attributes = gen_attributes (
9494 session .config .getini ('rp_launch_attributes' ))
95- if not session .config .getini ( ' rp_launch_id' ) :
95+ if not session .config .option . rp_launch_id :
9696 session .config .py_test_service .start_launch (
9797 session .config .option .rp_launch ,
9898 attributes = attributes ,
@@ -142,7 +142,7 @@ def pytest_sessionfinish(session):
142142 return
143143
144144 if is_master (session .config ):
145- if not session .config .getini ( ' rp_launch_id' ) :
145+ if not session .config .option . rp_launch_id :
146146 session .config .py_test_service .finish_launch ()
147147
148148
@@ -188,6 +188,8 @@ def pytest_configure(config):
188188 if not config .option .rp_launch_description :
189189 config .option .rp_launch_description = config .\
190190 getini ('rp_launch_description' )
191+ if not config .option .rp_launch_id :
192+ config .option .rp_launch_id = config .getini ('rp_launch_id' )
191193
192194 if is_master (config ):
193195 config .py_test_service = PyTestServiceClass ()
0 commit comments