@@ -208,7 +208,6 @@ def configure(self, options, conf):
208
208
self .duration = float (0 )
209
209
self .page_results_list = []
210
210
self .test_count = 0
211
- self .import_error = False
212
211
log_path = constants .Logs .LATEST + "/"
213
212
archive_logs = options .archive_logs
214
213
log_helper .log_folder_setup (log_path , archive_logs )
@@ -238,6 +237,7 @@ def beforeTest(self, test):
238
237
)
239
238
else :
240
239
variables = {}
240
+ test .test .test_id = test .id ()
241
241
test .test .is_nosetest = True
242
242
test .test .environment = self .options .environment
243
243
test .test .env = self .options .environment # Add a shortened version
@@ -263,17 +263,16 @@ def finalize(self, result):
263
263
)
264
264
log_helper .clear_empty_logs ()
265
265
if self .report_on :
266
- if not self .import_error :
267
- report_helper .add_bad_page_log_file (self .page_results_list )
268
- report_log_path = report_helper .archive_new_report_logs ()
269
- report_helper .build_report (
270
- report_log_path ,
271
- self .page_results_list ,
272
- self .successes ,
273
- self .failures ,
274
- self .options .browser ,
275
- self .show_report ,
276
- )
266
+ report_helper .add_bad_page_log_file (self .page_results_list )
267
+ report_log_path = report_helper .archive_new_report_logs ()
268
+ report_helper .build_report (
269
+ report_log_path ,
270
+ self .page_results_list ,
271
+ self .successes ,
272
+ self .failures ,
273
+ self .options .browser ,
274
+ self .show_report ,
275
+ )
277
276
278
277
def addSuccess (self , test , capt ):
279
278
if self .report_on :
@@ -293,9 +292,6 @@ def add_fails_or_errors(self, test, err):
293
292
"%.2fs" % (float (time .time ()) - float (self .start_time ))
294
293
)
295
294
if test .id () == "nose.failure.Failure.runTest" :
296
- print (">>> ERROR: Could not locate tests to run!" )
297
- print (">>> The Test Report WILL NOT be generated!" )
298
- self .import_error = True
299
295
return
300
296
self .failures .append (test .id ())
301
297
self .page_results_list .append (
@@ -314,6 +310,7 @@ def add_fails_or_errors(self, test, err):
314
310
test ._log_fail_data ()
315
311
sb_config ._excinfo_tb = err
316
312
log_path = None
313
+ source = None
317
314
if hasattr (sb_config , "_test_logpath" ):
318
315
log_path = sb_config ._test_logpath
319
316
if hasattr (sb_config , "_last_page_source" ):
0 commit comments