Skip to content

Commit 1fbed48

Browse files
committed
Fixed check with variable at report_creator() function.
Sorting logs filelist before getting the last 2 logs in the list.
1 parent 3d2d15e commit 1fbed48

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
@@ -91,10 +91,10 @@ def throttle_compile():
9191
def report_creator(compile_type, log_entry, log_file):
9292
logs = os.listdir(get_path('logs'))
9393
logs_re = re.compile(r'.+cb_compile_tester.+')
94-
if compile_type == 'libraries':
94+
if compile_type == 'library':
9595
logs_re = re.compile(r'.+libraries_test.+')
9696

97-
logs = [x for x in logs if x != '.gitignore' and logs_re.match(x)]
97+
logs = sorted([x for x in logs if x != '.gitignore' and logs_re.match(x)])
9898
tail = logs[-2:]
9999
logs_to_examine = []
100100
for log in tail:

0 commit comments

Comments
 (0)