Skip to content

Commit c15d3d0

Browse files
committed
Disabled log resume, report creation for compile in targeted libraries.
A new log is created on each run and no report is created nor a mail is send.
1 parent 0ac0b65 commit c15d3d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codebender_testing/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def compile_sketches(self, sketches, iframe=False, project_view=False, logfile=N
552552

553553
urls_visited = {}
554554
last_log = read_last_log(compile_type)
555-
if last_log['log']:
555+
if compile_type != 'target_library' and last_log['log']:
556556
# resume previous compile
557557
log_time = strptime(last_log['timestamp'], '%Y-%m-%d_%H-%M-%S')
558558
log_entry = last_log['log']
@@ -650,7 +650,7 @@ def compile_sketches(self, sketches, iframe=False, project_view=False, logfile=N
650650
return
651651

652652
# Generate a report if requested
653-
if create_report:
653+
if compile_type != 'target_library' and create_report:
654654
report_creator(compile_type, log_entry, log_file)
655655
print '\nTest duration:', int(toc - tic), 'sec'
656656

0 commit comments

Comments
 (0)