File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 112
112
if options .list :
113
113
# Print available tests in order and exit
114
114
print_tests (tests , options .format )
115
+ sys .exit (0 )
115
116
else :
116
117
# Build all tests
117
118
if not options .build_dir :
146
147
except Exception , e :
147
148
library_build_success = False
148
149
print "Failed to build library"
149
- print e
150
150
151
151
if library_build_success :
152
152
# Build all the tests
158
158
macros = options .macros ,
159
159
verbose = options .verbose ,
160
160
jobs = options .jobs )
161
-
162
- if not test_build_success :
163
- print "Failed to build some tests, check build log for details"
164
161
165
162
# If a path to a test spec is provided, write it to a file
166
163
if options .test_spec :
181
178
182
179
# If a path to a JUnit build report spec is provided, write it to a file
183
180
if options .build_report_junit :
184
- report_exporter = ReportExporter (ResultExporterType .JUNIT )
181
+ report_exporter = ReportExporter (ResultExporterType .JUNIT , package = "build" )
185
182
report_exporter .report_to_file (build_report , options .build_report_junit , test_suite_properties = build_properties )
186
183
187
- if library_build_success and test_build_success :
188
- sys .exit (0 )
189
- else :
190
- sys .exit (1 )
184
+ if library_build_success and test_build_success :
185
+ sys .exit (0 )
186
+ else :
187
+ sys .exit (1 )
191
188
192
189
except KeyboardInterrupt , e :
193
190
print "\n [CTRL+c] exit"
You can’t perform that action at this time.
0 commit comments