@@ -103,14 +103,14 @@ def get_version():
103
103
104
104
# Print scrip version
105
105
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 () )
109
109
exit (0 )
110
110
111
111
# Print summary / information about automation test status
112
112
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 ) )
114
114
exit (0 )
115
115
116
116
# Print summary / information about automation test status
@@ -122,15 +122,15 @@ def get_version():
122
122
'host_test' ,
123
123
'duration' ,
124
124
'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 ,
126
126
result_summary = False ,
127
127
join_delim = '\n ' ,
128
- platform_filter = opts .general_filter_regex )
128
+ platform_filter = opts .general_filter_regex ))
129
129
exit (0 )
130
130
131
131
# Only prints matrix of supported toolchains
132
132
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 ) )
134
134
exit (0 )
135
135
136
136
test_spec = None
@@ -139,14 +139,14 @@ def get_version():
139
139
if hasattr (opts , 'auto_detect' ) and opts .auto_detect :
140
140
# If auto_detect attribute is present, we assume other auto-detection
141
141
# parameters like 'toolchains_filter' are also set.
142
- print "MBEDLS: Detecting connected mbed-enabled devices... "
142
+ print ( "MBEDLS: Detecting connected mbed-enabled devices... " )
143
143
144
144
MUTs = get_autodetected_MUTS_list ()
145
145
146
146
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' ],
148
148
mut ['port' ],
149
- mut ['disk' ])
149
+ mut ['disk' ]))
150
150
151
151
# Set up parameters for test specification filter function (we need to set toolchains per target here)
152
152
use_default_toolchain = 'default' in opts .toolchains_filter if opts .toolchains_filter is not None else True
@@ -179,13 +179,13 @@ def get_version():
179
179
exit (- 1 )
180
180
181
181
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 ) )
183
183
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 ) )
187
187
if test_spec :
188
- print print_test_configuration_from_json (test_spec )
188
+ print ( print_test_configuration_from_json (test_spec ) )
189
189
exit (0 )
190
190
191
191
if get_module_avail ('mbed_lstools' ):
@@ -201,16 +201,16 @@ def get_version():
201
201
report_exporter = ReportExporter (ResultExporterType .JUNIT_OPER )
202
202
report_exporter .report_to_file (test_results , opts .report_junit_file_name )
203
203
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 ]) ))
206
206
207
207
exit (0 )
208
208
209
209
# Verbose test specification and MUTs configuration
210
210
if MUTs and opts .verbose :
211
- print print_muts_configuration_from_json (MUTs )
211
+ print ( print_muts_configuration_from_json (MUTs ) )
212
212
if test_spec and opts .verbose :
213
- print print_test_configuration_from_json (test_spec )
213
+ print ( print_test_configuration_from_json (test_spec ) )
214
214
215
215
if opts .only_build_tests :
216
216
# We are skipping testing phase, and suppress summary
0 commit comments