Skip to content

Commit ed45e1d

Browse files
author
Sergei Voronezhskii
committed
Print reproduce file content in parallel mode
If test fails in parallel mode, print the reproduce file content part of #104
1 parent 68b11ed commit ed45e1d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

listeners.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ def print_statistics(self):
5252
color_stdout('Failed tasks:\n', schema='test_var')
5353
for task_id, worker_name in self.failed_tasks:
5454
logfile = self.get_logfile(worker_name)
55-
reproduce_file = get_reproduce_file(worker_name)
55+
reproduce_file_path = get_reproduce_file(worker_name)
5656
color_stdout('- %s' % yaml.safe_dump(task_id), schema='test_var')
5757
color_stdout('# logfile: %s\n' % logfile)
58-
color_stdout('# reproduce file: %s\n' % reproduce_file)
58+
color_stdout('# reproduce file: %s\n' % reproduce_file_path)
59+
color_stdout("---\n", schema='separator')
60+
lib.utils.print_tail_n(reproduce_file_path)
61+
color_stdout("...\n", schema='separator')
5962

6063
return True
6164

0 commit comments

Comments
 (0)