File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77from robottelo .config import setting_is_set , settings
88from robottelo .hosts import get_sat_rhel_version
9+ from robottelo .logging import logger
910from robottelo .utils .ohsnap import container_image_properties
1011
1112FMT_XUNIT_TIME = '%Y-%m-%dT%H:%M:%S'
@@ -51,13 +52,16 @@ def pytest_sessionstart(session):
5152 xml .add_global_property ("SatelliteVersion" , sat_version )
5253 xml .add_global_property ("SnapVersion" , snap_version )
5354 xml .add_global_property ("BaseOS" , rhel_version )
54- if settings .server .deploy_arguments .deploy_container :
55- for name , value in container_image_properties (
56- settings .ohsnap ,
57- sat_version ,
58- snap_version ,
59- ):
60- xml .add_global_property (name , value )
55+ try :
56+ if settings .server .deploy_arguments .get ('deploy_container' ):
57+ for name , value in container_image_properties (
58+ settings .ohsnap ,
59+ sat_version ,
60+ snap_version ,
61+ ):
62+ xml .add_global_property (name , value )
63+ except Exception :
64+ logger .warning ('Failed to fetch container image properties for JUnit XML' )
6165
6266
6367@pytest .fixture (autouse = False , scope = 'session' )
You can’t perform that action at this time.
0 commit comments