Skip to content

Commit c8d0627

Browse files
committed
fix get_log_paths returning compressed files
1 parent 10325a2 commit c8d0627

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ci/jobs/scripts/integration_tests_runner.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,11 @@ def _handle_broken_tests(
505505
def get_log_paths(test_name):
506506
"""Could be a list of logs for all tests or a dict with test name as a key"""
507507
if isinstance(log_paths, dict):
508-
return sorted(log_paths[test_name], reverse=True)
509-
return sorted(log_paths, reverse=True)
508+
log_paths = log_paths[test_name]
509+
log_paths = sorted(
510+
[x for x in log_paths if x.endswith(".log")], reverse=True
511+
)
512+
return log_paths
510513

511514
broken_tests_log = os.path.join(self.result_path, "broken_tests_handler.log")
512515

0 commit comments

Comments
 (0)