@@ -103,14 +103,14 @@ def get_version():
103103
104104 # Print scrip version
105105 if opts .version :
106- print parser .description
107- print parser .epilog
108- print "Version %d.%d" % get_version ()
106+ print ( parser .description )
107+ print ( parser .epilog )
108+ print ( "Version %d.%d" % get_version () )
109109 exit (0 )
110110
111111 # Print summary / information about automation test status
112112 if opts .test_automation_report :
113- print get_avail_tests_summary_table (platform_filter = opts .general_filter_regex )
113+ print ( get_avail_tests_summary_table (platform_filter = opts .general_filter_regex ) )
114114 exit (0 )
115115
116116 # Print summary / information about automation test status
@@ -122,15 +122,15 @@ def get_version():
122122 'host_test' ,
123123 'duration' ,
124124 'source_dir' ]
125- print get_avail_tests_summary_table (cols = test_case_report_cols ,
125+ print ( get_avail_tests_summary_table (cols = test_case_report_cols ,
126126 result_summary = False ,
127127 join_delim = '\n ' ,
128- platform_filter = opts .general_filter_regex )
128+ platform_filter = opts .general_filter_regex ))
129129 exit (0 )
130130
131131 # Only prints matrix of supported toolchains
132132 if opts .supported_toolchains :
133- print mcu_toolchain_matrix (platform_filter = opts .general_filter_regex )
133+ print ( mcu_toolchain_matrix (platform_filter = opts .general_filter_regex ) )
134134 exit (0 )
135135
136136 test_spec = None
@@ -139,14 +139,14 @@ def get_version():
139139 if hasattr (opts , 'auto_detect' ) and opts .auto_detect :
140140 # If auto_detect attribute is present, we assume other auto-detection
141141 # parameters like 'toolchains_filter' are also set.
142- print "MBEDLS: Detecting connected mbed-enabled devices... "
142+ print ( "MBEDLS: Detecting connected mbed-enabled devices... " )
143143
144144 MUTs = get_autodetected_MUTS_list ()
145145
146146 for mut in MUTs .values ():
147- print "MBEDLS: Detected %s, port: %s, mounted: %s" % (mut ['mcu_unique' ] if 'mcu_unique' in mut else mut ['mcu' ],
147+ print ( "MBEDLS: Detected %s, port: %s, mounted: %s" % (mut ['mcu_unique' ] if 'mcu_unique' in mut else mut ['mcu' ],
148148 mut ['port' ],
149- mut ['disk' ])
149+ mut ['disk' ]))
150150
151151 # Set up parameters for test specification filter function (we need to set toolchains per target here)
152152 use_default_toolchain = 'default' in opts .toolchains_filter if opts .toolchains_filter is not None else True
@@ -179,13 +179,13 @@ def get_version():
179179 exit (- 1 )
180180
181181 if opts .verbose_test_configuration_only :
182- print "MUTs configuration in %s:" % ('auto-detected' if opts .auto_detect else opts .muts_spec_filename )
182+ print ( "MUTs configuration in %s:" % ('auto-detected' if opts .auto_detect else opts .muts_spec_filename ) )
183183 if MUTs :
184- print print_muts_configuration_from_json (MUTs , platform_filter = opts .general_filter_regex )
185- print
186- print "Test specification in %s:" % ('auto-detected' if opts .auto_detect else opts .test_spec_filename )
184+ print ( print_muts_configuration_from_json (MUTs , platform_filter = opts .general_filter_regex ) )
185+ print ()
186+ print ( "Test specification in %s:" % ('auto-detected' if opts .auto_detect else opts .test_spec_filename ) )
187187 if test_spec :
188- print print_test_configuration_from_json (test_spec )
188+ print ( print_test_configuration_from_json (test_spec ) )
189189 exit (0 )
190190
191191 if get_module_avail ('mbed_lstools' ):
@@ -201,16 +201,16 @@ def get_version():
201201 report_exporter = ReportExporter (ResultExporterType .JUNIT_OPER )
202202 report_exporter .report_to_file (test_results , opts .report_junit_file_name )
203203 else :
204- print "Unknown interoperability test scope name: '%s'" % (opts .operability_checks )
205- print "Available test scopes: %s" % (',' .join (["'%s'" % n for n in test_scope ]))
204+ print ( "Unknown interoperability test scope name: '%s'" % (opts .operability_checks ) )
205+ print ( "Available test scopes: %s" % (',' .join (["'%s'" % n for n in test_scope ]) ))
206206
207207 exit (0 )
208208
209209 # Verbose test specification and MUTs configuration
210210 if MUTs and opts .verbose :
211- print print_muts_configuration_from_json (MUTs )
211+ print ( print_muts_configuration_from_json (MUTs ) )
212212 if test_spec and opts .verbose :
213- print print_test_configuration_from_json (test_spec )
213+ print ( print_test_configuration_from_json (test_spec ) )
214214
215215 if opts .only_build_tests :
216216 # We are skipping testing phase, and suppress summary
0 commit comments