@@ -70,7 +70,7 @@ def __init__(self, args):
70
70
super (TestRunner , self ).__init__ ()
71
71
assert path .isfile (args .compiler ) and os .access (args .compiler , os .X_OK ), \
72
72
"Given compiler ({}) is file and is executable." .format (args .compiler )
73
- assert args .no_interpreter or (path .isfile (args .interpreter ) and os .access (args .interpreter , os .X_OK )), \
73
+ assert args .no_interpreter or (path .isfile (args .interpreter ) and os .access (args .interpreter , os .X_OK )), \
74
74
"Given interpreter ({}) is file and is executable." .format (args .interpreter )
75
75
assert isinstance (args .command_timeout , float ) and args .command_timeout > 0 , \
76
76
'Command timeout is positive int'
@@ -125,7 +125,7 @@ def run(self):
125
125
return 1
126
126
127
127
self ._run_tests ()
128
-
128
+ result = TestLogger . log_results ( self . _reports )
129
129
if self ._uploader .has_connection :
130
130
try :
131
131
response = self ._uploader .send_reports ()
@@ -137,8 +137,7 @@ def run(self):
137
137
TestLogger .log_warning ('Unable to send reports ({}), terminating...' .format (e ))
138
138
else :
139
139
TestLogger .log_warning ('Results upload skipped.' )
140
-
141
- return TestLogger .log_results (self ._reports )
140
+ return result
142
141
143
142
def _run_tests (self ):
144
143
for test_section_dir in self ._loader .load_section_dirs ():
@@ -333,6 +332,7 @@ def _save_report(self, test_info, report):
333
332
in enumerate (lines , start = 1 )
334
333
if line
335
334
) or '# ---' )
335
+ write ('\n ' * 2 )
336
336
self ._reports .append (report )
337
337
TestLogger ._test_case_success = report .success
338
338
TestLogger ._test_case_skipped = report .skipped
@@ -359,10 +359,9 @@ def _welcome_message(self):
359
359
TestLogger .log (
360
360
TestLogger .GREEN ,
361
361
TestLogger .BOLD ,
362
- "Activated {} extensions: {}{}." .format (
363
- len (self ._extensions ),
362
+ "Activated extensions: {}{}." .format (
364
363
', ' .join (sorted (self ._extensions )),
365
- ' - autoloaded from {}' .format (self ._extensions_auto_loaded_from )
364
+ ' from {}' .format (self ._extensions_auto_loaded_from )
366
365
if self ._extensions_auto_loaded_from else ''
367
366
),
368
367
)
0 commit comments